1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-27 11:02:16 +01:00

feat: improve permission messaging (#10804)

This commit is contained in:
Mateusz Kwasniewski 2025-10-15 14:33:53 +02:00 committed by GitHub
parent e83d92975c
commit 10c30751d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 9 additions and 4 deletions

View File

@ -45,7 +45,8 @@ export const ChangeRequestConfiguration = () => {
header={<PageHeader title='Change request configuration' />}
>
<Alert severity='error'>
You need project owner permissions to access this section.
You need project owner permissions or a custom role with
"view change request configuration" to access this section.
</Alert>
</PageContent>
);

View File

@ -44,7 +44,9 @@ export const ProjectDefaultStrategySettings = () => {
header={<PageHeader title='Default Strategy configuration' />}
>
<Alert severity='error'>
You need project owner permissions to access this section.
You need project owner permissions or a custom role with
"project default strategy configuration" permission to
access this section.
</Alert>
</PageContent>
);

View File

@ -36,7 +36,8 @@ export const Settings = () => {
return (
<PageContent header={<PageHeader title='General settings' />}>
<Alert severity='error'>
You need project owner permissions to access this section.
You need project owner permissions or a custom role with
"project setting access permission" to access this section.
</Alert>
</PageContent>
);

View File

@ -36,7 +36,8 @@ export const ProjectAccess = () => {
return (
<PageContent header={<PageHeader title='User access' />}>
<Alert severity='error'>
You need project owner permissions to access this section.
You need project owner permissions or a custom role with
"view project user permission" to access this section.
</Alert>
</PageContent>
);