Skip to content

Commit 969e012

Browse files
committed
Yeah I borked that
1 parent a4853e8 commit 969e012

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/middleware/middleware.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,8 @@ async function validateUser (req, res, next) {
135135

136136
const activeInOrg = true
137137

138-
if ((!result.active) || (!activeInOrg)) {
138+
if ((!useRegistry && !result.active) ||
139+
(useRegistry && !activeInOrg)) {
139140
logger.warn(JSON.stringify({ uuid: req.ctx.uuid, message: 'User deactivated. Authentication failed for ' + user }))
140141
return res.status(401).json(error.unauthorized())
141142
}

0 commit comments

Comments
 (0)