Skip to content
Snippets Groups Projects
Commit a3c61eff authored by Haakon Tideman Kanter's avatar Haakon Tideman Kanter
Browse files

Merge branch 'dont-check-members-if-not-logged-in' into 'main'

bugfix

See merge request !130
parents 44fb7c93 ac2c4bf2
No related branches found
No related tags found
1 merge request!130bugfix
Pipeline #181649 failed
......@@ -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