Remove objective group buttons from students

This commit is contained in:
Ramon Wenger 2018-11-21 18:26:16 +01:00
parent bcb3e5e719
commit 1b11599eb8
1 changed files with 17 additions and 0 deletions

View File

@ -63,6 +63,9 @@
return this.module.objectiveGroups ? this.module.objectiveGroups return this.module.objectiveGroups ? this.module.objectiveGroups
.filter(group => group.title === 'SOCIETY') .filter(group => group.title === 'SOCIETY')
.sort(withoutOwnerFirst) : []; .sort(withoutOwnerFirst) : [];
},
isStudent() {
return !this.me.permissions.includes('users.can_manage_school_class_content');
} }
}, },
@ -93,6 +96,20 @@
} }
}) })
}, },
},
apollo: {
me: {
query: ME_QUERY,
}
},
data() {
return {
me: {
permissions: []
}
}
} }
} }
</script> </script>