Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1771


Ignore:
Timestamp:
05/08/09 14:17:29 (16 years ago)
Author:
mbecirov
Message:

#586

Location:
trunk/sources/HeuristicLab.Security.Core/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Security.Core/3.2/HeuristicLab.Security.Core-3.2.csproj

    r1739 r1771  
    100100      <Name>HeuristicLab.DataAccess-3.2</Name>
    101101    </ProjectReference>
     102    <ProjectReference Include="..\..\HeuristicLab.Hive.Server.Core\3.2\HeuristicLab.Hive.Server.Core-3.2.csproj">
     103      <Project>{898B31CF-81DC-453B-AEB3-BDF83197A7EE}</Project>
     104      <Name>HeuristicLab.Hive.Server.Core-3.2</Name>
     105    </ProjectReference>
    102106    <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj">
    103107      <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project>
  • trunk/sources/HeuristicLab.Security.Core/3.2/SecurityCoreTest.cs

    r1765 r1771  
    215215      private void MB_AddPermission(List<User> users) {
    216216        if (users.Count < 2) return;
     217        /*
    217218        Permission permission = new Permission();
    218219        //permission.Id = PermissiveSecurityAction.Add_Job;
     
    220221        permission.Description = "Add new jobs";
    221222        permission.Plugin = "HeuristicLab.Hive.Server";
    222        
    223223        manager.AddPermission(permission);
     224        */
    224225        //grant permission to random users
    225226        Random rand = new Random(DateTime.Now.Millisecond);
    226227        for (int i = 0; i < users.Count/2; i++) {
    227228          int idx = rand.Next(users.Count);
    228           manager.GrantPermission(users[i].Id, permission.Id, Guid.Empty);
     229          //manager.GrantPermission(users[i].Id, permission.Id, Guid.Empty);
     230          manager.GrantPermission(users[i].Id, PermissiveSecurityAction.Add_Job, Guid.Empty);
    229231        }
    230232      }
Note: See TracChangeset for help on using the changeset viewer.