mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 13:29:41 +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';
|
||||
|
||||
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…
Add table
Add a link
Reference in a new issue