Changeset 15955 for branches/2839_HiveProjectManagement
- Timestamp:
- 06/08/18 09:43:29 (7 years ago)
- Location:
- branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views
- Files:
-
- 2 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 } -
branches/2839_HiveProjectManagement/HeuristicLab.Clients.Hive.Administrator/3.3/Views/ProjectResourcesView.cs
r15933 r15955 125 125 SetAssignedProjectResources(Content.Id, newAssignedResources.Select(x => x.Id), false, false, false); 126 126 }); 127 HiveAdminClient.Instance.Refresh(); 127 128 UpdateResourceTree(); 128 129 }
Note: See TracChangeset
for help on using the changeset viewer.