mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 15:38:15 +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 { currentRepoInfo, userPerm } = this.state;
|
||||||
let showShareBtn = Utils.isHasPermissionToShare(currentRepoInfo, userPerm);
|
let showShareBtn = Utils.isHasPermissionToShare(currentRepoInfo, userPerm);
|
||||||
let isRepoOwner = currentRepoInfo.owner_email === username;
|
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) => {
|
let direntItemsList = this.state.direntList.filter((item, index) => {
|
||||||
return index < this.state.itemsShowLength;
|
return index < this.state.itemsShowLength;
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user