mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-02 23:48:47 +00:00
repair group menu bug
This commit is contained in:
@@ -217,15 +217,17 @@ 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) {
|
||||||
this.isDeparementOnwerGroupMember = true;
|
if (repo.owner_email === currentGroup.id + '@seafile_group') {
|
||||||
if (folderPermEnabled) {
|
this.isDeparementOnwerGroupMember = true;
|
||||||
operations = ['Rename', 'Folder Permission', 'History Setting', 'Details'];
|
if (folderPermEnabled) {
|
||||||
|
operations = ['Rename', 'Folder Permission', 'History Setting', 'Details'];
|
||||||
|
} else {
|
||||||
|
operations = ['Rename', 'Details'];
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
operations = ['Rename', 'Details'];
|
operations.push('Unshare');
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
operations.push('Unshare');
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (isRepoOwner || isAdmin) {
|
if (isRepoOwner || isAdmin) {
|
||||||
|
Reference in New Issue
Block a user