Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
05/31/12 10:36:45 (12 years ago)
Author:
ascheibe
Message:

#1174 adapted OKB to changes in the Access Service (r7936)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/OKBRoles.cs

    r7592 r7941  
    3030    public static bool CheckUserPermissions() {
    3131      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) {
    3333          return true;
    3434        }
     
    3939    public static bool CheckAdminUserPermissions() {
    4040      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) {
    4242          return true;
    4343        }
Note: See TracChangeset for help on using the changeset viewer.