mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user