Skip to content
This repository was archived by the owner on Dec 18, 2020. It is now read-only.
This repository was archived by the owner on Dec 18, 2020. It is now read-only.

Improve HierarchyUtils #45

@alikindsys

Description

@alikindsys

Add extensions for getting the highest role with a given permission and allow predicates on GetHighestRole

-- Role GetHighestRole(this Member m);
++ Role GetHighestRole(this Member m, Func<Role,bool> pred);
++ Role GetHighestRole(this Member m) => m.GetHighestRole(_ => true);
++ Role GetHighestRoleWithPermission(this Member m , Perm p) => m.GetHighestRole(x => x.HasPermission(p));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions