Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
01/08/18 12:45:15 (7 years ago)
Author:
jzenisek
Message:

#2839

  • minor bugfix in HiveService.cs
  • corrected behavior of ProjectPermissionsView
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.cs

    r15576 r15580  
    4444    private readonly Dictionary<Guid, HashSet<UserGroupBase>> userGroupDescendants = new Dictionary<Guid, HashSet<UserGroupBase>>();
    4545
     46    private IEnumerable<UserGroupBase> addedPermissions;
     47    private IEnumerable<UserGroupBase> removedPermissions;
     48    private IEnumerable<UserGroupBase> addedIncludes;
     49    private IEnumerable<UserGroupBase> removedIncludes;
     50
    4651    private readonly Color addedAssignmentColor = Color.FromArgb(255, 87, 191, 193); // #57bfc1
    4752    private readonly Color removedAssignmentColor = Color.FromArgb(255, 236, 159, 72); // #ec9f48
     
    215220
    216221    private UserGroupBase BuildPermissionsList(IEnumerable<UserGroupBase> usersAndGroups) {
     222      addedPermissions = newAssignedPermissions.Except(assignedPermissions);
     223      removedPermissions = assignedPermissions.Except(newAssignedPermissions);
     224      addedIncludes = newInheritedPermissions.Except(inheritedPermissions);
     225      removedIncludes = inheritedPermissions.Except(newInheritedPermissions);
     226
    217227      treeView.Nodes.Clear();
    218228      if (!usersAndGroups.Any()) return null;
     
    259269
    260270    private void BuildNode(UserGroupBase ug, TreeNode node) {
    261       var addedPermissions = newAssignedPermissions.Except(assignedPermissions);
    262       var removedPermissions = assignedPermissions.Except(newAssignedPermissions);
    263       var addedIncludes = newInheritedPermissions.Except(inheritedPermissions);
    264       var removedIncludes = inheritedPermissions.Except(newInheritedPermissions);
    265271
    266272      if (newAssignedPermissions.Contains(ug)) {
Note: See TracChangeset for help on using the changeset viewer.