Changeset 15580 for branches/HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Timestamp:
- 01/08/18 12:45:15 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.cs
r15576 r15580 44 44 private readonly Dictionary<Guid, HashSet<UserGroupBase>> userGroupDescendants = new Dictionary<Guid, HashSet<UserGroupBase>>(); 45 45 46 private IEnumerable<UserGroupBase> addedPermissions; 47 private IEnumerable<UserGroupBase> removedPermissions; 48 private IEnumerable<UserGroupBase> addedIncludes; 49 private IEnumerable<UserGroupBase> removedIncludes; 50 46 51 private readonly Color addedAssignmentColor = Color.FromArgb(255, 87, 191, 193); // #57bfc1 47 52 private readonly Color removedAssignmentColor = Color.FromArgb(255, 236, 159, 72); // #ec9f48 … … 215 220 216 221 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 217 227 treeView.Nodes.Clear(); 218 228 if (!usersAndGroups.Any()) return null; … … 259 269 260 270 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);265 271 266 272 if (newAssignedPermissions.Contains(ug)) {
Note: See TracChangeset
for help on using the changeset viewer.