Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/20/12 20:11:13 (13 years ago)
Author:
jkarder
Message:

#1860:

  • removed AuthorizesForResourceAdministration method
  • transfered permission checking to the client
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  
    232232          && resource.Name != UngroupedGroupName
    233233          && 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());
    235236    }
    236237
  • trunk/sources/HeuristicLab.Clients.Hive.Administrator/3.3/Views/SlaveView.cs

    r8051 r8071  
    6969          ShowSlaveUI(true);
    7070          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());
    7272          txtName.Text = ct.Name;
    7373          txtHbIntervall.Text = ct.HbInterval.ToString();
Note: See TracChangeset for help on using the changeset viewer.