This commit is contained in:
parent
6dce4282fd
commit
9bc7a5d65f
@ -81,9 +81,13 @@
|
||||
hasPermissions() {
|
||||
let account = this.$store.state.userInfo?.nickname;
|
||||
if (account) {
|
||||
if (this.$route.params.article_id) {
|
||||
if (account === this.article.articleAuthor.userNickname) {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return this.$store.getters.hasPermissions('blog_admin');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user