mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
feat(ui): restrict views by role [EE-6595] (#11010)
This commit is contained in:
parent
437831fa80
commit
f5f84c5fa4
22 changed files with 338 additions and 83 deletions
|
@ -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 'Name' but, in
|
||||
fact, it's always been the stack name (hence the relabelling).
|
||||
{isAdmin && (
|
||||
{isPureAdmin && (
|
||||
<>
|
||||
<br />
|
||||
Kubernetes Stacks functionality can be turned off entirely via{' '}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue