Changeset 2091
- Timestamp:
- 06/25/09 12:19:37 (15 years ago)
- Location:
- trunk/sources
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Server.Core/3.2/Authorization/HivePermissionManager.cs
r2067 r2091 52 52 //check if user has 'xxx.Project' permission 53 53 if (p != null) 54 //TODO: Test auf NULL von Project! 54 55 if (CheckPermission(sessionID, p.Id, jobManager.GetJobById(entityID).Obj.Project.Id)) return; 55 56 … … 60 61 if (CheckPermission(sessionID, p.Id, jobManager.GetJobById(entityID).Obj.UserId)) return; 61 62 //throw an exception when user access fails 62 throw new PermissionException(policyName);63 //throw new PermissionException(policyName); 63 64 } 64 65 -
trunk/sources/HeuristicLab.Security.Core/3.2/SecurityCoreTest.cs
r2067 r2091 267 267 user.SetHashedPassword("admin"); 268 268 user.Name = "HIVE Admin"; 269 User tmp = manager.AddNewUser(user); 270 269 271 Debug.WriteLine("Grant ALL permissions to admin..."); 270 272 foreach (Permission item in HivePermissions.GetPermissions()) { 271 273 try { 272 manager.GrantPermission( user.Id, item.Id, Guid.Empty);274 manager.GrantPermission(tmp.Id, item.Id, Guid.Empty); 273 275 } 274 276 catch (Exception ex) {
Note: See TracChangeset
for help on using the changeset viewer.