Free cookie consent management tool by TermsFeed Policy Generator

Changeset 7941


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

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

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  
    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        }
  • branches/OKB (trunk integration)/HeuristicLab.Clients.OKB/3.3/RunCreation/OKBAlgorithm.cs

    r7634 r7941  
    206206    private void CheckUserPermissions() {
    207207      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) {
    209209          UserId = UserInformation.Instance.User.Id;
    210210        } else {
Note: See TracChangeset for help on using the changeset viewer.