Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/04/17 13:56:38 (7 years ago)
Author:
jkarder
Message:

#2839:

  • worked on hive administrator view
  • updated service clients
File:
1 moved

Legend:

Unmodified
Added
Removed
  • branches/HiveProjectManagement/HeuristicLab.Clients.Access/3.3/HiveRoles.cs

    r15392 r15401  
    2121
    2222using System.Linq;
    23 using HeuristicLab.Clients.Access;
    2423
    25 namespace HeuristicLab.Clients.Hive.Administrator {
     24namespace HeuristicLab.Clients.Access {
    2625  public static class HiveRoles {
    2726    public const string Administrator = "Hive Administrator";
     
    3029
    3130    public static bool CheckAdminUserPermissions() {
    32       return UserInformation.Instance.UserExists && UserInformation.Instance.User.Roles.Any(x => x.Name == HiveRoles.Administrator);
     31      return UserInformation.Instance.UserExists && UserInformation.Instance.User.Roles.Any(x => x.Name == Administrator);
     32    }
     33
     34    public static bool CheckHiveUserPermissions() {
     35      return UserInformation.Instance.UserExists && UserInformation.Instance.User.Roles.Any(x => x.Name == User);
    3336    }
    3437  }
Note: See TracChangeset for help on using the changeset viewer.