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';
|
||||
|
||||
export function AddButton() {
|
||||
return (
|
||||
<BaseAddButton
|
||||
data-cy="registry-addRegistryButton"
|
||||
to="portainer.registries.new"
|
||||
>
|
||||
Add registry
|
||||
</BaseAddButton>
|
||||
<Authorized authorizations="OperationPortainerRegistryCreate">
|
||||
<BaseAddButton
|
||||
data-cy="registry-addRegistryButton"
|
||||
to="portainer.registries.new"
|
||||
>
|
||||
Add registry
|
||||
</BaseAddButton>
|
||||
</Authorized>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue