Changeset 8071 for trunk/sources/HeuristicLab.Clients.Hive.Administrator
- Timestamp:
- 06/20/12 20:11:13 (13 years ago)
- Location:
- trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ResourcesView.cs
r8051 r8071 232 232 && resource.Name != UngroupedGroupName 233 233 && resource.Id != Guid.Empty 234 && HiveServiceLocator.Instance.CallHiveService<bool>(service => { return service.AuthorizesForResourceAdministration(resource.Id); }); 234 && UserInformation.Instance.UserExists 235 && (resource.OwnerUserId == UserInformation.Instance.User.Id || HiveRoles.CheckAdminUserPermissions()); 235 236 } 236 237 -
trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.cs
r8051 r8071 69 69 ShowSlaveUI(true); 70 70 Slave ct = (Slave)Content; 71 bool authorized = HiveServiceLocator.Instance.CallHiveService<bool>(service => service.AuthorizesForResourceAdministration(ct.Id));71 bool authorized = UserInformation.Instance.UserExists && (ct.OwnerUserId == UserInformation.Instance.User.Id || HiveRoles.CheckAdminUserPermissions()); 72 72 txtName.Text = ct.Name; 73 73 txtHbIntervall.Text = ct.HbInterval.ToString();
Note: See TracChangeset
for help on using the changeset viewer.