diff --git a/controllers/extensionRequests.js b/controllers/extensionRequests.js index 50940acc66..d3c92cc550 100644 --- a/controllers/extensionRequests.js +++ b/controllers/extensionRequests.js @@ -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"); }