fix(intake): show readonly nodes for designers

This commit is contained in:
WuYongJie 2026-05-23 14:21:58 +08:00
parent 78a036ca2d
commit 40c6ab14ea

View File

@ -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,
],
);