Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
08/02/18 16:58:48 (6 years ago)
Author:
jzenisek
Message:

#2839: fixed handling of project related updates for project owners, who are no admins and do not own parent projects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2839_HiveProjectManagement/HeuristicLab.Services.Hive/3.3/Manager/AuthorizationManager.cs

    r15992 r16040  
    137137        if (RoleVerifier.IsInRole(HiveRoles.Administrator)) return;
    138138
    139         // check if user is owner of a parent project
    140         var projectBranch = projectDao.GetParentProjectsById(projectId).ToList();
     139        // check if user is owner of the project or a parent project
     140        var projectBranch = projectDao.GetCurrentAndParentProjectsById(projectId).ToList();
    141141        if (!projectBranch.Select(x => x.OwnerUserId).Contains(currentUserId)
    142142            && !RoleVerifier.IsInRole(HiveRoles.Administrator)) {
Note: See TracChangeset for help on using the changeset viewer.