Ignore:
Timestamp:
01/26/18 08:51:30 (3 years ago)
Author:
jzenisek
Message:

#2839

  • worked on (restricted) accessibility of hive's administration area for non-admin roles
  • adapted HiveClient & HiveAdminClient entity loading (client- & service-side)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveProjectManagement/HeuristicLab.Clients.Hive.JobManager/3.3/Views/HiveResourceSelector.cs

    r15642 r15658  
    468468    private static IEnumerable<Resource> GetAssignedResourcesForProject(Guid projectId) {
    469469      var assignedProjectResources = HiveServiceLocator.Instance.CallHiveService(s => s.GetAssignedResourcesForProject(projectId));
    470       return HiveAdminClient.Instance.Resources.Where(x => assignedProjectResources.Select(y => y.ResourceId).Contains(x.Id));
     470      return HiveClient.Instance.Resources.Where(x => assignedProjectResources.Select(y => y.ResourceId).Contains(x.Id));
    471471    }
    472472
    473473    private static IEnumerable<Resource> GetAssignedResourcesForJob(Guid jobId) {
    474474      var assignedJobResources = HiveServiceLocator.Instance.CallHiveService(s => s.GetAssignedResourcesForJob(jobId));
    475       return HiveAdminClient.Instance.Resources.Where(x => assignedJobResources.Select(y => y.ResourceId).Contains(x.Id));
     475      return HiveClient.Instance.Resources.Where(x => assignedJobResources.Select(y => y.ResourceId).Contains(x.Id));
    476476    }
    477477
     
    581581      resourceAncestors.Clear();
    582582      resourceDescendants.Clear();
    583       var resources = HiveAdminClient.Instance.Resources;
     583      var resources = HiveClient.Instance.Resources;
    584584
    585585      foreach (var r in resources) {
Note: See TracChangeset for help on using the changeset viewer.