- Timestamp:
- 07/10/18 23:06:00 (6 years ago)
- Location:
- branches/2839_HiveProjectManagement/HeuristicLab.Services.Access/3.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Services.Access/3.3/Interfaces/IRoleVerifier.cs
r14185 r15992 23 23 public interface IRoleVerifier { 24 24 bool IsInRole(string role); 25 bool IsUserInRole(string username, string role); 25 26 bool IsInAnyRole(params string[] roles); 26 27 bool IsInAllRoles(params string[] roles); -
branches/2839_HiveProjectManagement/HeuristicLab.Services.Access/3.3/RoleVerifier.cs
r14185 r15992 29 29 return Roles.IsUserInRole(role); 30 30 } 31 public bool IsUserInRole(string username, string role) { 32 return Roles.IsUserInRole(username, role); 33 } 31 34 public bool IsInAnyRole(params string[] roles) { 32 35 return roles.Any(x => Roles.IsUserInRole(x));
Note: See TracChangeset
for help on using the changeset viewer.