mirror of https://github.com/portainer/portainer
fix(registry): non admin can see add registry button [BE-10834] (#12112)
parent
a39abe61c2
commit
8cd53a4b7a
|
@ -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…
Reference in New Issue