- Timestamp:
- 05/31/12 10:36:45 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/OKBRoles.cs
r7592 r7941 30 30 public static bool CheckUserPermissions() { 31 31 if (UserInformation.Instance.UserExists) { 32 if (UserInformation.Instance. Roles.Count(x => x.Name == OKBRoles.OKBUser || x.Name == OKBRoles.OKBAdministrator) > 0) {32 if (UserInformation.Instance.User.Roles.Count(x => x.Name == OKBRoles.OKBUser || x.Name == OKBRoles.OKBAdministrator) > 0) { 33 33 return true; 34 34 } … … 39 39 public static bool CheckAdminUserPermissions() { 40 40 if (UserInformation.Instance.UserExists) { 41 if (UserInformation.Instance. Roles.Count(x => x.Name == OKBRoles.OKBAdministrator) > 0) {41 if (UserInformation.Instance.User.Roles.Count(x => x.Name == OKBRoles.OKBAdministrator) > 0) { 42 42 return true; 43 43 }
Note: See TracChangeset
for help on using the changeset viewer.