Skip to content

Commit

Permalink
fix: change authorization condition
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajjs committed Jan 16, 2025
1 parent 9d892d8 commit 41d8433
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/onboardingExtension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const updateOnboardingExtensionRequestController = async (

const extensionRequest = extensionRequestDoc.data() as OnboardingExtension;

if(!isSuperuser || lastModifiedBy !== extensionRequest.userId) {
if(!isSuperuser && lastModifiedBy !== extensionRequest.userId) {
return res.boom.forbidden(UNAUTHORIZED_TO_UPDATE_REQUEST);
}

Expand Down

0 comments on commit 41d8433

Please sign in to comment.