Skip to content

Commit dc0769b

Browse files
committed
I can't read
1 parent 8a3d7a5 commit dc0769b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -905,9 +905,9 @@ async function updateUser (req, res, next) {
905905

906906
if (!isRequesterSecretariat && !isAdmin) {
907907
if (targetUserUUID !== requesterUUID) {
908-
logger.info({ uuid: req.ctx.uuid, message: 'Only Secretariat can reassign user organization.' })
908+
logger.info({ uuid: req.ctx.uuid, message: 'Not same user or secretariat' })
909909
await session.abortTransaction(); await session.endSession()
910-
return res.status(403).json(error.notSameUserOrSecretariatUpdate())
910+
return res.status(403).json(error.notOrgAdminOrSecretariatUpdate())
911911
}
912912
}
913913

0 commit comments

Comments
 (0)