mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-15 19:16:22 +00:00
misc: finalized error message
This commit is contained in:
@@ -188,7 +188,9 @@ const constructPermissionErrorMessage = (
|
||||
opSubject: OrgPermissionSet[1] | ProjectPermissionSet[1]
|
||||
) => {
|
||||
return `${baseMessage}${
|
||||
shouldUseNewPrivilegeSystem ? `. Missing permission ${opAction as string} on ${opSubject as string}` : ""
|
||||
shouldUseNewPrivilegeSystem
|
||||
? `. Missing permission ${opAction as string} on ${opSubject as string}`
|
||||
: ". Privilege level is not high enough to perform this action"
|
||||
}`;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user