1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

['dir view' page] don't display the 'views' module for group members when the 'metadata' feature is not turned on (#7106)

This commit is contained in:
llj
2024-11-26 17:50:42 +08:00
committed by GitHub
parent b083ecad29
commit ffc75b77c3

View File

@@ -26,7 +26,9 @@ const DirViews = ({ userPerm, repoID, currentPath, currentRepoInfo }) => {
setSettingsDialogOpen(true);
}, []);
if (!enableMetadataManagement) return null;
if (!enableMetadataManagement || (!enableMetadata && !currentRepoInfo.is_admin)) {
return null;
}
return (
<>