mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 15:09:14 +00:00
share item show bug
This commit is contained in:
@@ -1484,7 +1484,11 @@ class LibContentView extends React.Component {
|
||||
let { currentRepoInfo, userPerm } = this.state;
|
||||
let showShareBtn = Utils.isHasPermissionToShare(currentRepoInfo, userPerm);
|
||||
let isRepoOwner = currentRepoInfo.owner_email === username;
|
||||
|
||||
let isVirtual = currentRepoInfo.is_virtual;
|
||||
let isAdmin = currentRepoInfo.is_admin;
|
||||
if (!isVirtual && (isRepoOwner || isAdmin)) {
|
||||
enableDirPrivateShare = true;
|
||||
}
|
||||
let direntItemsList = this.state.direntList.filter((item, index) => {
|
||||
return index < this.state.itemsShowLength;
|
||||
});
|
||||
|
Reference in New Issue
Block a user