Changeset 7941
- Timestamp:
- 05/31/12 10:36:45 (12 years ago)
- Location:
- branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3
- Files:
-
- 2 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 } -
branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBAlgorithm.cs
r7634 r7941 206 206 private void CheckUserPermissions() { 207 207 if (UserInformation.Instance.UserExists) { 208 if (UserInformation.Instance. Roles.Count(x => x.Name == OKBRoles.OKBUser || x.Name == OKBRoles.OKBAdministrator) > 0) {208 if (UserInformation.Instance.User.Roles.Count(x => x.Name == OKBRoles.OKBUser || x.Name == OKBRoles.OKBAdministrator) > 0) { 209 209 UserId = UserInformation.Instance.User.Id; 210 210 } else {
Note: See TracChangeset
for help on using the changeset viewer.