Support multiple roles

This commit is contained in:
Owen
2026-05-04 14:54:20 -07:00
parent 660197eef1
commit a80ae49a33
5 changed files with 16 additions and 11 deletions

View File

@@ -54,7 +54,7 @@ export async function updateResourcePolicy(
);
}
if (req.user && !req.userOrgRoleId) {
if (req.user && req.userOrgRoleIds?.length === 0) {
return next(
createHttpError(HttpCode.FORBIDDEN, "User does not have a role")
);