fix(intake): show readonly nodes for designers
This commit is contained in:
parent
78a036ca2d
commit
40c6ab14ea
@ -11185,21 +11185,15 @@ export default function NonIntegratedDetailClient({
|
||||
return category === OPENING_REFERENCE_WORKSPACE_CATEGORY;
|
||||
}
|
||||
|
||||
if (
|
||||
isCurrentUserPlainReadOnlyViewer &&
|
||||
isPlainViewerHiddenDocumentWorkspaceCategory(category)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!hasCurrentUserContext || isCurrentUserFullDetailEditor) return true;
|
||||
return getNodePermissionAccessForCategory(category).view;
|
||||
const nodePermissionAccess =
|
||||
getNodePermissionAccessForCategory(category);
|
||||
return nodePermissionAccess.view;
|
||||
},
|
||||
[
|
||||
getNodePermissionAccessForCategory,
|
||||
hasCurrentUserContext,
|
||||
isCurrentUserFullDetailEditor,
|
||||
isCurrentUserPlainReadOnlyViewer,
|
||||
linkEntryView,
|
||||
],
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user