mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-05 10:16:41 +00:00
change user role
This commit is contained in:
@@ -38,7 +38,7 @@ export async function verifyUserAccess(
|
||||
req.userOrg = res[0];
|
||||
}
|
||||
|
||||
if (req.userOrg) {
|
||||
if (!req.userOrg) {
|
||||
return next(
|
||||
createHttpError(
|
||||
HttpCode.FORBIDDEN,
|
||||
|
||||
Reference in New Issue
Block a user