From 8cd53a4b7a2899de3a26ebd006f53c0a04e0c36d Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Wed, 21 Aug 2024 11:00:00 +1200 Subject: [PATCH] fix(registry): non admin can see add registry button [BE-10834] (#12112) --- .../ListView/RegistriesDatatable/AddButton.tsx | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/app/react/portainer/registries/ListView/RegistriesDatatable/AddButton.tsx b/app/react/portainer/registries/ListView/RegistriesDatatable/AddButton.tsx index ab53a29e3..2c8e5a20a 100644 --- a/app/react/portainer/registries/ListView/RegistriesDatatable/AddButton.tsx +++ b/app/react/portainer/registries/ListView/RegistriesDatatable/AddButton.tsx @@ -1,12 +1,16 @@ +import { Authorized } from '@/react/hooks/useUser'; + import { AddButton as BaseAddButton } from '@@/buttons'; export function AddButton() { return ( - - Add registry - + + + Add registry + + ); }