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:
@@ -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 (
|
||||
<>
|
||||
|
Reference in New Issue
Block a user