- Timestamp:
- 10/04/17 13:56:38 (7 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveProjectManagement/HeuristicLab.Clients.Access/3.3/HiveRoles.cs
r15392 r15401 21 21 22 22 using System.Linq; 23 using HeuristicLab.Clients.Access;24 23 25 namespace HeuristicLab.Clients. Hive.Administrator{24 namespace HeuristicLab.Clients.Access { 26 25 public static class HiveRoles { 27 26 public const string Administrator = "Hive Administrator"; … … 30 29 31 30 public static bool CheckAdminUserPermissions() { 32 return UserInformation.Instance.UserExists && UserInformation.Instance.User.Roles.Any(x => x.Name == HiveRoles.Administrator); 31 return UserInformation.Instance.UserExists && UserInformation.Instance.User.Roles.Any(x => x.Name == Administrator); 32 } 33 34 public static bool CheckHiveUserPermissions() { 35 return UserInformation.Instance.UserExists && UserInformation.Instance.User.Roles.Any(x => x.Name == User); 33 36 } 34 37 }
Note: See TracChangeset
for help on using the changeset viewer.