From b20243d863ce6a9ecba1c2678c39655504338151 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Gyebrovszki?= Date: Thu, 11 Jan 2024 10:54:54 +0100 Subject: [PATCH] Disable orgunits and add icons to user's allroles menu. --- apps/sensenet/src/components/content-list/roles-field.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/sensenet/src/components/content-list/roles-field.tsx b/apps/sensenet/src/components/content-list/roles-field.tsx index a2b4d07d0..4e65c03c6 100644 --- a/apps/sensenet/src/components/content-list/roles-field.tsx +++ b/apps/sensenet/src/components/content-list/roles-field.tsx @@ -8,6 +8,7 @@ import React, { FunctionComponent, useState } from 'react' import { useGlobalStyles } from '../../globalStyles' import { useLocalization } from '../../hooks' import { useDialog } from '../dialogs' +import { Icon } from '../Icon' const useStyles = makeStyles(() => { return createStyles({ @@ -108,7 +109,9 @@ export const RolesField: FunctionComponent = ({ user, roles, di onClick={async (event) => { openGroupDialog(event, role) setAnchorEl(null) - }}> + }} + disabled={role.Type == 'OrganizationalUnit'}> + {role.DisplayName} {isIndirect(role) && (