Changeset 4337 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Authorization/AuthorizationManager.cs
- Timestamp:
- 08/27/10 11:46:46 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/Authorization/AuthorizationManager.cs
r4333 r4337 14 14 private IContextFactory contextFactory = ServiceLocator.GetContextFactory(); 15 15 16 public void AuthorizeForJobs(params Guid[] jobId ) {17 if (!(Identity.IsAuthenticated && IsAuthorizedForJobs(jobId ))) {18 throw new SecurityException( );16 public void AuthorizeForJobs(params Guid[] jobIds) { 17 if (!(Identity.IsAuthenticated && IsAuthorizedForJobs(jobIds))) { 18 throw new SecurityException("User '" + Identity.Name + "' is not authorized to access job (Id: " + string.Join(", ", jobIds.Select(x => x.ToString()).ToArray()) + ")"); 19 19 } 20 20 }
Note: See TracChangeset
for help on using the changeset viewer.