fix(groups): don't show add manager for non-groups and non-leaders

This commit is contained in:
Sabe Jones
2018-10-18 18:08:30 -05:00
parent c4fc6671b4
commit ae445555e9

View File

@@ -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;