Skip to content

Commit

Permalink
AB#1186 Allow admins to approve all reports
Browse files Browse the repository at this point in the history
The front-end already allowed it, but the back-end refused it.
  • Loading branch information
gjvoosten committed Oct 2, 2024
1 parent 418a3d1 commit 5c0dcd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/mil/dds/anet/resources/ReportResource.java
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ public int approveReport(@GraphQLRootContext Map<String, Object> context,
}

// Verify that this user can approve for this step.
final boolean canApprove = engine
final boolean canApprove = AuthUtils.isAdmin(approver) || engine
.canUserApproveStep(engine.getContext(), approver.getUuid(), step, r.getAdvisorOrgUuid())
.join();
if (!canApprove) {
Expand Down

0 comments on commit 5c0dcd2

Please sign in to comment.