mirror of
https://github.com/veops/cmdb.git
synced 2025-08-12 06:47:19 +08:00
feat(ui): update
This commit is contained in:
@@ -57,7 +57,9 @@ export default {
|
||||
computed: {
|
||||
...mapState(['user', 'locale']),
|
||||
hasBackendPermission() {
|
||||
return this.user?.detailPermissions?.backend?.length
|
||||
const isAdmin = this?.user?.roles?.permissions?.includes('acl_admin')
|
||||
|
||||
return isAdmin || this.user?.detailPermissions?.backend?.length
|
||||
},
|
||||
},
|
||||
methods: {
|
||||
|
Reference in New Issue
Block a user