mirror of
https://github.com/portainer/portainer.git
synced 2025-07-23 15:29:42 +02:00
fix(registry): non admin can see add registry button [BE-10834] (#12112)
This commit is contained in:
parent
a39abe61c2
commit
8cd53a4b7a
1 changed files with 10 additions and 6 deletions
|
@ -1,12 +1,16 @@
|
||||||
|
import { Authorized } from '@/react/hooks/useUser';
|
||||||
|
|
||||||
import { AddButton as BaseAddButton } from '@@/buttons';
|
import { AddButton as BaseAddButton } from '@@/buttons';
|
||||||
|
|
||||||
export function AddButton() {
|
export function AddButton() {
|
||||||
return (
|
return (
|
||||||
<BaseAddButton
|
<Authorized authorizations="OperationPortainerRegistryCreate">
|
||||||
data-cy="registry-addRegistryButton"
|
<BaseAddButton
|
||||||
to="portainer.registries.new"
|
data-cy="registry-addRegistryButton"
|
||||||
>
|
to="portainer.registries.new"
|
||||||
Add registry
|
>
|
||||||
</BaseAddButton>
|
Add registry
|
||||||
|
</BaseAddButton>
|
||||||
|
</Authorized>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue