mirror of
https://github.com/portainer/portainer.git
synced 2025-07-25 08:19:40 +02:00
fix(sidebar): show authorized links [EE-3610] (#7152)
This commit is contained in:
parent
005c48b1ad
commit
9a92b97b7e
14 changed files with 57 additions and 41 deletions
|
@ -47,7 +47,10 @@ export function KubernetesSidebar({ environmentId }: Props) {
|
|||
data-cy="k8sSidebar-namespaces"
|
||||
/>
|
||||
|
||||
<Authorized authorizations="HelmInstallChart">
|
||||
<Authorized
|
||||
authorizations="HelmInstallChart"
|
||||
environmentId={environmentId}
|
||||
>
|
||||
<SidebarItem
|
||||
to="kubernetes.templates.helm"
|
||||
params={{ endpointId: environmentId }}
|
||||
|
@ -86,18 +89,26 @@ export function KubernetesSidebar({ environmentId }: Props) {
|
|||
params={{ endpointId: environmentId }}
|
||||
data-cy="k8sSidebar-cluster"
|
||||
>
|
||||
<Authorized authorizations="K8sClusterSetupRW" adminOnlyCE>
|
||||
<Authorized
|
||||
authorizations="K8sClusterSetupRW"
|
||||
adminOnlyCE
|
||||
environmentId={environmentId}
|
||||
>
|
||||
<SidebarItem
|
||||
to="portainer.k8sendpoint.kubernetesConfig"
|
||||
to="kubernetes.cluster.setup"
|
||||
params={{ id: environmentId }}
|
||||
label="Setup"
|
||||
data-cy="k8sSidebar-setup"
|
||||
/>
|
||||
</Authorized>
|
||||
|
||||
<Authorized authorizations="K8sClusterSetupRW" adminOnlyCE>
|
||||
<Authorized
|
||||
authorizations="K8sClusterSetupRW"
|
||||
adminOnlyCE
|
||||
environmentId={environmentId}
|
||||
>
|
||||
<SidebarItem
|
||||
to="portainer.k8sendpoint.securityConstraint"
|
||||
to="kubernetes.cluster.securityConstraint"
|
||||
params={{ id: environmentId }}
|
||||
label="Security constraints"
|
||||
data-cy="k8sSidebar-securityConstraints"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue