Exemplo n.º 1
0
 private static bool TheUserHasAccessToEverything(Role role)
 {
     return role.AllContent;
 }
Exemplo n.º 2
0
 private static bool TheRoleIsNotDefined(Role role)
 {
     return role == null;
 }
Exemplo n.º 3
0
 private static bool TheRoleDoesNotHaveAccessToThisController(string controller, Role role)
 {
     return role.AvailableModules.Contains(controller) == false;
 }
Exemplo n.º 4
0
 private static bool TheRoleIsInactive(Role role)
 {
     return role.Inactive;
 }
 private static bool TheRoleDoesNotHaveAccessToThisContentTreeSectionNode(ContentTreeSectionNode contentTreeSectionNode, Role role)
 {
     return role.AvailableContentSections.Contains(contentTreeSectionNode.Id) == false;
 }