Changeset 1771
- Timestamp:
- 05/08/09 14:17:29 (16 years ago)
- 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 100 100 <Name>HeuristicLab.DataAccess-3.2</Name> 101 101 </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> 102 106 <ProjectReference Include="..\..\HeuristicLab.PluginInfrastructure\HeuristicLab.PluginInfrastructure.csproj"> 103 107 <Project>{94186A6A-5176-4402-AE83-886557B53CCA}</Project> -
trunk/sources/HeuristicLab.Security.Core/3.2/SecurityCoreTest.cs
r1765 r1771 215 215 private void MB_AddPermission(List<User> users) { 216 216 if (users.Count < 2) return; 217 /* 217 218 Permission permission = new Permission(); 218 219 //permission.Id = PermissiveSecurityAction.Add_Job; … … 220 221 permission.Description = "Add new jobs"; 221 222 permission.Plugin = "HeuristicLab.Hive.Server"; 222 223 223 manager.AddPermission(permission); 224 */ 224 225 //grant permission to random users 225 226 Random rand = new Random(DateTime.Now.Millisecond); 226 227 for (int i = 0; i < users.Count/2; i++) { 227 228 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); 229 231 } 230 232 }
Note: See TracChangeset
for help on using the changeset viewer.