1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-27 09:19:39 +02:00

feat(ui): restrict views by role [EE-6595] (#11071)

This commit is contained in:
Chaim Lev-Ari 2024-02-15 13:29:55 +02:00 committed by GitHub
parent fe6ed55cab
commit 165d6165dc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 338 additions and 83 deletions

View file

@ -4,12 +4,12 @@ import { InsightsBox } from '@@/InsightsBox';
import { Link } from '@@/Link';
export function StackNameLabelInsight() {
const { isAdmin } = useCurrentUser();
const { isPureAdmin } = useCurrentUser();
const insightsBoxContent = (
<>
The stack field below was previously labelled &apos;Name&apos; but, in
fact, it&apos;s always been the stack name (hence the relabelling).
{isAdmin && (
{isPureAdmin && (
<>
<br />
Kubernetes Stacks functionality can be turned off entirely via{' '}