Fix API endpoint action issues

This commit is contained in:
Owen
2026-05-04 16:01:40 -07:00
parent 43f2e32231
commit 5922bfb1a0
5 changed files with 24 additions and 23 deletions

View File

@@ -111,7 +111,7 @@ export async function verifyResourcePolicyAccess(
req.userOrgRoleIds = await getUserOrgRoleIds(
req.userOrg.userId,
orgId!
policy.orgId
);
req.userOrgId = policy.orgId;

View File

@@ -38,7 +38,7 @@ export function verifyUserCanSetUserOrgRoles() {
return next(
createHttpError(
HttpCode.FORBIDDEN,
"User does not have permission perform this action"
"User does not have permission to set user organization roles"
)
);
} catch (error) {