mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-21 19:24:15 +00:00
fix(groups): don't show add manager for non-groups and non-leaders
This commit is contained in:
parent
c4fc6671b4
commit
ae445555e9
1 changed files with 2 additions and 1 deletions
|
|
@ -496,8 +496,9 @@ export default {
|
|||
});
|
||||
},
|
||||
shouldShowAddManager (memberId) {
|
||||
if (!this.isLeader && !this.isAdmin) return false;
|
||||
if (memberId === this.group.leader || memberId === this.group.leader._id) return false;
|
||||
return !(this.group.managers && this.group.managers[memberId]);
|
||||
return this.groupIsSubscribed && !(this.group.managers && this.group.managers[memberId]);
|
||||
},
|
||||
shouldShowRemoveManager (memberId) {
|
||||
if (!this.isLeader && !this.isAdmin) return false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue