Skip to content

Commit

Permalink
Fixed incorrect auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
HansDahle committed Nov 15, 2024
1 parent 5f39732 commit ac1053d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public async Task<ActionResult<ApiCollection<ApiResourceAllocationRequest>>> Get
r.AlwaysAccessWhen().FullControl().FullControlInternal().BeTrustedApplication();
r.AnyOf(or =>
{
or.BeResourceOwner(new DepartmentPath(departmentString.FullDepartment).GoToLevel(2), includeDescendants: true);
or.BeResourceOwnerForDepartment(new DepartmentPath(departmentString.FullDepartment).GoToLevel(2), includeDescendants: true);
or.HaveOrgUnitScopedRole(DepartmentId.FromFullPath(departmentString.FullDepartment), AccessRoles.ResourceOwner);
});
});
Expand Down Expand Up @@ -70,7 +70,7 @@ public async Task<ActionResult> OptionsDepartmentRequests([FromRoute] OrgUnitIde
r.AlwaysAccessWhen().FullControl().FullControlInternal().BeTrustedApplication();
r.AnyOf(or =>
{
or.BeResourceOwner(new DepartmentPath(departmentString.FullDepartment).GoToLevel(2), includeDescendants: true);
or.BeResourceOwnerForDepartment(new DepartmentPath(departmentString.FullDepartment).GoToLevel(2), includeDescendants: true);
or.HaveOrgUnitScopedRole(DepartmentId.FromFullPath(departmentString.FullDepartment), AccessRoles.ResourceOwner);
});
});
Expand Down

0 comments on commit ac1053d

Please sign in to comment.