Beispiel #1
0
 public static bool IsUserActionAllowed(MasterUser user, params MasterActionType [] actions)
 {
     return(MasterUserManagement.IsUserActionAllowed(user, actions.ToList()));
 }
Beispiel #2
0
 /// <summary>
 /// Determines whether the user has the supplied rights.
 /// </summary>
 /// <param name="user">The user to test.</param>
 /// <param name="roleTypesMinimumRequired">The minimum combination of roles that is required. Users must have all these roles assigned.</param>
 /// <param name="roleTypesAllowedForBypass">A list of roles that allows the user to bypass the [roleTypesMinimumRequired] parameter even if a single match is found.</param>
 /// <returns></returns>
 public static bool IsUserActionAllowed(MasterUser user, MasterActionType action)
 {
     return(MasterUserManagement.IsUserActionAllowed(user, new MasterActionType [] { action }));
 }