Changeset 15955 for branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.cs
- Timestamp:
- 06/08/18 09:43:29 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectPermissionsView.cs
r15954 r15955 169 169 private void UpdateNewAssignedPermissions() { 170 170 for(int i = newAssignedPermissions.Count-1; i >= 0; i--) { 171 if(newAssignedPermissions.Intersect(userGroupAncestors[newAssignedPermissions.ElementAt(i).Id]).Any()) { 171 if(newAssignedPermissions.Intersect(userGroupAncestors[newAssignedPermissions.ElementAt(i).Id]).Any() 172 && newAssignedPermissions.ElementAt(i).Id != Content.OwnerUserId) { 172 173 newAssignedPermissions.Remove(newAssignedPermissions.ElementAt(i)); 173 174 } … … 181 182 if(userGroupDescendants.ContainsKey(item.Id)) { 182 183 foreach(var descendant in userGroupDescendants[item.Id]) { 183 inheritedPermissions.Add(descendant); 184 newInheritedPermissions.Add(descendant); 184 if(!assignedPermissions.Contains(descendant)) { 185 inheritedPermissions.Add(descendant); 186 newInheritedPermissions.Add(descendant); 187 } 185 188 } 186 189 } … … 193 196 if(userGroupDescendants.ContainsKey(item.Id)) { 194 197 foreach(var descendant in userGroupDescendants[item.Id]) { 195 newInheritedPermissions.Add(descendant); 198 if(!newAssignedPermissions.Contains(descendant)) 199 newInheritedPermissions.Add(descendant); 196 200 } 197 201 }
Note: See TracChangeset
for help on using the changeset viewer.