Skip to content

Commit

Permalink
pending status check added
Browse files Browse the repository at this point in the history
  • Loading branch information
ahsrah7 committed Nov 20, 2024
1 parent 8b91d59 commit 7916d9e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/extensionRequests.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,7 @@ const updateExtensionRequest = async (req, res) => {
if (
isDev &&
!req.userData?.roles.super_user &&
(extensionRequest.extensionRequestData.status === EXTENSION_REQUEST_STATUS.APPROVED ||
extensionRequest.extensionRequestData.status === EXTENSION_REQUEST_STATUS.DENIED)
extensionRequest.extensionRequestData.status !== EXTENSION_REQUEST_STATUS.PENDING
) {
return res.boom.badRequest("Only pending extension request can be updated");
}
Expand Down

0 comments on commit 7916d9e

Please sign in to comment.