Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,8 @@ export default function EntitySummaryPanel({
const { tab } = useRequiredParams<{ tab: string }>();
const { t } = useTranslation();
const navigate = useNavigate();
const { getEntityPermission } = usePermissionProvider();
const { getEntityPermission, getEntityPermissionByFqn } =
usePermissionProvider();
const [isPermissionLoading, setIsPermissionLoading] = useState<boolean>(true);
const [entityPermissions, setEntityPermissions] =
useState<OperationPermission>(DEFAULT_ENTITY_PERMISSION);
Expand Down Expand Up @@ -231,7 +232,16 @@ export default function EntitySummaryPanel({
}
}

const permissions = await getEntityPermission(type, idForPermission);
// In ontology data-mode, nodes are built with id=FQN (not a UUID).
// Passing that FQN to the by-ID endpoint returns empty permissions even
// for admins.
const isOntologyPanel =
panelPath === 'ontology-explorer' ||
panelPath === 'glossary-term-assets-tab';
const permissions =
isOntologyPanel && fqn
? await getEntityPermissionByFqn(type, fqn)
: await getEntityPermission(type, idForPermission);
setEntityPermissions(permissions);
} catch {
// Error - set default permission to allow viewing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ const GlossaryDetails = ({
glossaryId={glossary.id}
height="100%"
scope="glossary"
showHeader={false}
/>
),
},
Expand Down
Loading
Loading