mirror of
https://github.com/jumpserver/lina.git
synced 2025-08-16 05:53:13 +00:00
fix: 修复全局组织下更新、删除:用户、端点、端点规则、组织权限
This commit is contained in:
parent
bc366947f0
commit
fe1e26957a
@ -60,6 +60,7 @@ export default {
|
|||||||
actions: {
|
actions: {
|
||||||
prop: 'id',
|
prop: 'id',
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
|
canUpdate: this.$hasPerm('orgs.change_organization'),
|
||||||
canDelete: function({ row }) {
|
canDelete: function({ row }) {
|
||||||
return !row.is_default && vm.$hasPerm('orgs.delete_organization')
|
return !row.is_default && vm.$hasPerm('orgs.delete_organization')
|
||||||
},
|
},
|
||||||
|
@ -37,9 +37,10 @@ export default {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
|
canUpdate: this.$hasPerm('terminal.change_endpoint'),
|
||||||
updateRoute: 'EndpointUpdate',
|
updateRoute: 'EndpointUpdate',
|
||||||
cloneRoute: 'EndpointCreate',
|
cloneRoute: 'EndpointCreate',
|
||||||
canDelete: ({ row }) => row.id !== '00000000-0000-0000-0000-000000000001'
|
canDelete: ({ row }) => row.id !== '00000000-0000-0000-0000-000000000001' && this.$hasPerm('terminal.delete_endpoint')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,7 @@ export default {
|
|||||||
},
|
},
|
||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
|
canUpdate: this.$hasPerm('terminal.change_endpointrule'),
|
||||||
updateRoute: 'EndpointRuleUpdate',
|
updateRoute: 'EndpointRuleUpdate',
|
||||||
cloneRoute: 'EndpointRuleCreate'
|
cloneRoute: 'EndpointRuleCreate'
|
||||||
}
|
}
|
||||||
|
@ -115,6 +115,7 @@ export default {
|
|||||||
actions: {
|
actions: {
|
||||||
formatterArgs: {
|
formatterArgs: {
|
||||||
hasDelete: hasDelete,
|
hasDelete: hasDelete,
|
||||||
|
canUpdate: this.$hasPerm('users.change_user'),
|
||||||
extraActions: [
|
extraActions: [
|
||||||
{
|
{
|
||||||
title: this.$t('users.Remove'),
|
title: this.$t('users.Remove'),
|
||||||
|
Loading…
Reference in New Issue
Block a user