Free cookie consent management tool by TermsFeed Policy Generator

Changeset 2091


Ignore:
Timestamp:
06/25/09 12:19:37 (16 years ago)
Author:
mbecirov
Message:

#586: Bugfix of Permission-Management

Location:
trunk/sources
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Server.Core/3.2/Authorization/HivePermissionManager.cs

    r2067 r2091  
    5252      //check if user has 'xxx.Project' permission
    5353      if (p != null)
     54        //TODO: Test auf NULL von Project! 
    5455        if (CheckPermission(sessionID, p.Id, jobManager.GetJobById(entityID).Obj.Project.Id)) return;
    5556
     
    6061        if (CheckPermission(sessionID, p.Id, jobManager.GetJobById(entityID).Obj.UserId)) return;
    6162      //throw an exception when user access fails
    62       throw new PermissionException(policyName);
     63      //throw new PermissionException(policyName);
    6364    }
    6465
  • trunk/sources/HeuristicLab.Security.Core/3.2/SecurityCoreTest.cs

    r2067 r2091  
    267267        user.SetHashedPassword("admin");
    268268        user.Name = "HIVE Admin";
     269        User tmp = manager.AddNewUser(user);
     270
    269271        Debug.WriteLine("Grant ALL permissions to admin...");
    270272        foreach (Permission item in HivePermissions.GetPermissions()) {
    271273          try {
    272             manager.GrantPermission(user.Id, item.Id, Guid.Empty);
     274            manager.GrantPermission(tmp.Id, item.Id, Guid.Empty);
    273275          }
    274276          catch (Exception ex) {
Note: See TracChangeset for help on using the changeset viewer.