Skip to content

Commit fb8a43c

Browse files
committed
Removed hard coded true
1 parent a05e940 commit fb8a43c

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
@@ -122,7 +122,7 @@ async function getUsers (req, res, next) {
122122
return res.status(403).json(error.notSameOrgOrSecretariat())
123123
}
124124

125-
const payload = await userRepo.getAllUsersByOrgShortname(orgShortName, options, true)
125+
const payload = await userRepo.getAllUsersByOrgShortname(orgShortName, options, !req.useRegistry)
126126

127127
logger.info({ uuid: req.ctx.uuid, message: `The users of ${orgShortName} organization were sent to the user.` })
128128
return res.status(200).json(payload)

0 commit comments

Comments
 (0)