Skip to content

Commit

Permalink
Merge pull request #1062 from atsu1125/fixadminmenu
Browse files Browse the repository at this point in the history
Fix: Fix: admin - access permission
  • Loading branch information
fs5m8 authored Dec 29, 2022
2 parents 0479521 + deba521 commit de078e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/app/admin/views/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,9 @@ export default Vue.extend({
return this.$store.state.i;
},
isModerator() {
return this.i.isAdmin || this.i.isModerator;
if (this.i) {
return this.i.isAdmin || this.i.isModerator;
}
}
}
});
Expand Down

0 comments on commit de078e7

Please sign in to comment.