misc: finalized error message

This commit is contained in:
Sheen Capadngan
2025-03-21 18:48:02 +08:00
parent cca7b68dd0
commit 6f9a66a0d7
8 changed files with 13 additions and 11 deletions
@@ -104,7 +104,7 @@ export const identityProjectServiceFactory = ({
throw new ForbiddenRequestError({
name: "PermissionBoundaryError",
message: constructPermissionErrorMessage(
"Failed to assign to a more privileged role",
"Failed to assign to role",
membership.shouldUseNewPrivilegeSystem,
ProjectPermissionIdentityActions.ManagePrivileges,
ProjectPermissionSub.Identity
@@ -212,7 +212,7 @@ export const identityProjectServiceFactory = ({
throw new ForbiddenRequestError({
name: "PermissionBoundaryError",
message: constructPermissionErrorMessage(
"Failed to change to a more privileged role",
"Failed to change role",
membership.shouldUseNewPrivilegeSystem,
ProjectPermissionIdentityActions.ManagePrivileges,
ProjectPermissionSub.Identity