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

repair group menu bug

This commit is contained in:
shanshuirenjia
2019-07-02 10:49:58 +08:00
parent 61caffa009
commit 65fed84036

View File

@@ -217,7 +217,8 @@ class SharedRepoListItem extends React.Component {
// todo ,shared width me shared width all; // todo ,shared width me shared width all;
if (isPro) { if (isPro) {
if (repo.owner_email.indexOf('@seafile_group') != -1) { //current repo is belong to a group; if (repo.owner_email.indexOf('@seafile_group') != -1) { //current repo is belong to a group;
if (isStaff && repo.owner_email == currentGroup.id + '@seafile_group') { //is a member of this current group, if (isStaff) {
if (repo.owner_email === currentGroup.id + '@seafile_group') {
this.isDeparementOnwerGroupMember = true; this.isDeparementOnwerGroupMember = true;
if (folderPermEnabled) { if (folderPermEnabled) {
operations = ['Rename', 'Folder Permission', 'History Setting', 'Details']; operations = ['Rename', 'Folder Permission', 'History Setting', 'Details'];
@@ -227,6 +228,7 @@ class SharedRepoListItem extends React.Component {
} else { } else {
operations.push('Unshare'); operations.push('Unshare');
} }
}
} else { } else {
if (isRepoOwner || isAdmin) { if (isRepoOwner || isAdmin) {
operations.push('Share'); operations.push('Share');