Squashed commit of the following:

commit 474fa530a0392ff6e7461eaff64c81a67b5e4eff
Author: SabreCat <sabe@habitica.com>
Date:   Fri Aug 18 21:44:09 2023 -0500

    fix(challenges): filter out groups without perms
This commit is contained in:
SabreCat
2023-08-22 12:23:39 -05:00
parent 1fa926ac04
commit 9e0e2a83be
2 changed files with 4 additions and 1 deletions

View File

@@ -418,6 +418,9 @@ export default {
methods: {
async shown () {
this.groups = await this.$store.dispatch('guilds:getMyGuilds');
this.groups = this.groups.filter(group => !(
group.leaderOnly.challenges && group.leader !== this.user._id
));
if (this.user.party && this.user.party._id) {
await this.$store.dispatch('party:getParty');