Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
12/20/17 11:27:33 (7 years ago)
Author:
jzenisek
Message:

#2839 worked on permission checks in listing methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveProjectManagement/HeuristicLab.Services.Hive/3.3/Manager/AuthorizationManager.cs

    r15540 r15552  
    3535    private const string NOT_AUTHORIZED_USERRESOURCE = "Current user is not authorized to access the requested resource";
    3636    private const string NOT_AUTHORIZED_USERPROJECT = "Current user is not authorized to access the requested project";
     37    private const string NOT_AUTHORIZED_USERJOB = "Current user is not authorized to access the requested job";
    3738    private const string NOT_AUTHORIZED_PROJECTRESOURCE = "Selected project is not authorized to access the requested resource";
    3839
     
    169170      if (permission == Permission.NotAllowed
    170171          || ((permission != requiredPermissionEntity) && requiredPermissionEntity == Permission.Full)) {
    171         throw new SecurityException(NOT_AUTHORIZED_USERRESOURCE);
     172        throw new SecurityException(NOT_AUTHORIZED_USERJOB);
    172173      }
    173174    }
Note: See TracChangeset for help on using the changeset viewer.