Greptile review fixes

This commit is contained in:
x032205
2025-05-27 21:11:19 -04:00
parent 8f010e740f
commit accb21f7ed
3 changed files with 12 additions and 3 deletions
@@ -359,6 +359,7 @@ export const accessApprovalRequestServiceFactory = ({
const isApprover = policy.approvers.find((approver) => approver.userId === actorId);
// If user is (not an approver OR cant self approve) AND can't bypass policy
if ((!isApprover || (!policy.allowedSelfApprovals && isSelfApproval)) && cannotBypassUnderSoftEnforcement) {
throw new BadRequestError({
message: "Failed to review access approval request. Users are not authorized to review their own request."