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
@@ -288,7 +288,7 @@ export const projectMembershipServiceFactory = ({
throw new ForbiddenRequestError({
name: "PermissionBoundaryError",
message: constructPermissionErrorMessage(
`Failed to change to a more privileged role ${requestedRoleChange}`,
`Failed to change role ${requestedRoleChange}`,
membership.shouldUseNewPrivilegeSystem,
ProjectPermissionMemberActions.ManagePrivileges,
ProjectPermissionSub.Member