Exemple #1
0
 public bool HasRole(RbacRole targetRole)
 {
     if (Name == targetRole.Name)
     {
         return(true);
     }
     return(SubRoles.Any((RbacRole subRole) => subRole.HasRole(targetRole)));
 }
Exemple #2
0
 public bool HasRole(RbacRole targetRole)
 {
     return(Roles.Any((RbacRole role) => role.HasRole(targetRole)));
 }