Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/07/18 17:20:08 (7 years ago)
Author:
jzenisek
Message:

#2839: updated behavior of permission assignment for project owners (client and server side)

File:
1 edited

Legend:

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

    r15953 r15954  
    123123    private void treeView_BeforeCheck(object sender, TreeViewCancelEventArgs e) {
    124124      var checkedPermission = (UserGroupBase)e.Node.Tag;
    125       if (e.Node.Parent == null || newInheritedPermissions.Contains(checkedPermission) || checkedPermission.Id == Guid.Empty) e.Cancel = true;
     125      if (e.Node.Parent == null
     126        || newInheritedPermissions.Contains(checkedPermission)
     127        || checkedPermission.Id == Guid.Empty
     128        || Content.OwnerUserId == checkedPermission.Id)
     129          e.Cancel = true;
    126130    }
    127131
Note: See TracChangeset for help on using the changeset viewer.