change user role

This commit is contained in:
Milo Schwartz 2024-11-10 21:19:41 -05:00
parent e141263b7e
commit 1a3d7705d9
No known key found for this signature in database
14 changed files with 320 additions and 306 deletions

View file

@ -38,7 +38,7 @@ export async function verifyUserAccess(
req.userOrg = res[0];
}
if (req.userOrg) {
if (!req.userOrg) {
return next(
createHttpError(
HttpCode.FORBIDDEN,