mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-09 02:42:47 +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:
@@ -26,7 +26,9 @@ const DirViews = ({ userPerm, repoID, currentPath, currentRepoInfo }) => {
|
|||||||
setSettingsDialogOpen(true);
|
setSettingsDialogOpen(true);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
if (!enableMetadataManagement) return null;
|
if (!enableMetadataManagement || (!enableMetadata && !currentRepoInfo.is_admin)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
Reference in New Issue
Block a user