Skip to content
Snippets Groups Projects
Commit ac2c4bf2 authored by Erik Borgeteien Hansen's avatar Erik Borgeteien Hansen
Browse files

bugfix

parent c4037e5c
No related branches found
No related tags found
1 merge request!130bugfix
Pipeline #181644 passed
......@@ -126,13 +126,15 @@ export default {
this.community = await CommunityService.getCommunity(
this.$route.params.communityID
);
const members = await CommunityService.getCommunityMembers(
this.$route.params.communityID
);
for (let i = 0; i < members.length; i++) {
if (members[i].userId == this.userid) {
this.member = true;
return;
if (this.$store.state.user.token !== null) {
const members = await CommunityService.getCommunityMembers(
this.$route.params.communityID
);
for (let i = 0; i < members.length; i++) {
if (members[i].userId == this.userid) {
this.member = true;
return;
}
}
}
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment