Skip to content

Commit ab4d4bf

Browse files
committed
wat
1 parent 26cca6e commit ab4d4bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/controller/org.controller/org.controller.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -906,7 +906,7 @@ async function updateUser (req, res, next) {
906906
if (shortNameParams !== requesterShortName && !isRequesterSecretariat) {
907907
logger.info({ uuid: req.ctx.uuid, message: `${shortNameParams} organization data can only be modified by users of the same organization or the Secretariat.` })
908908
await session.abortTransaction(); await session.endSession()
909-
return res.status(403).json(error.notSameUserOrSecretariat())
909+
return res.status(403).json(error.notSameOrgOrSecretariat())
910910
}
911911

912912
const userLeg = await userLegRepo.findOneByUserNameAndOrgUUID(usernameParams, targetOrgLegUUID, null, { session })

0 commit comments

Comments
 (0)