Skip to content

Commit

Permalink
Same permissions to release projecs as to acquire them
Browse files Browse the repository at this point in the history
If only project managers are allowed to assign projects to orgs, then
only project managers should be allowed to remove projects from orgs.
  • Loading branch information
rmunn committed Jun 14, 2024
1 parent 4424a3a commit c716b2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions backend/LexBoxApi/GraphQL/OrgMutations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public async Task<IQueryable<Organization>> ReleaseProject(
.Include(p => p.Organizations)
.SingleOrDefaultAsync();
NotFoundException.ThrowIfNull(project);
permissionService.AssertCanManageProject(projectId);
var foundOrg = project.Organizations.FirstOrDefault(o => o.Id == orgId);
if (foundOrg is not null)
{
Expand Down

0 comments on commit c716b2e

Please sign in to comment.