Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8bd826c9c | |||
| e3f6f9107d |
@@ -146,7 +146,11 @@ export default {
|
|||||||
return this.$store.state.user.roles
|
return this.$store.state.user.roles
|
||||||
},
|
},
|
||||||
hasRole() {
|
hasRole() {
|
||||||
return this.roles && this.roles.length > 1
|
return (
|
||||||
|
this.roles &&
|
||||||
|
this.roles.length > 1 &&
|
||||||
|
this.roles.filter((item) => !item.IsUserRoleDisabled).length > 1
|
||||||
|
)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
|||||||
Reference in New Issue
Block a user