private static bool TheUserHasAccessToEverything(Role role) { return role.AllContent; }
private static bool TheRoleIsNotDefined(Role role) { return role == null; }
private static bool TheRoleDoesNotHaveAccessToThisController(string controller, Role role) { return role.AvailableModules.Contains(controller) == false; }
private static bool TheRoleIsInactive(Role role) { return role.Inactive; }
private static bool TheRoleDoesNotHaveAccessToThisContentTreeSectionNode(ContentTreeSectionNode contentTreeSectionNode, Role role) { return role.AvailableContentSections.Contains(contentTreeSectionNode.Id) == false; }