mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-25 14:34:46 +00:00
fix: 修复工单详情会话卡片按钮权限控制
This commit is contained in:
committed by
Jiangjie.Bai
parent
de57c78925
commit
35451931b2
@@ -40,7 +40,7 @@ export default {
|
||||
attrs: {
|
||||
type: 'danger',
|
||||
label: this.$t('sessions.terminate'),
|
||||
disabled: !this.session['can_terminate'] || !vm.$hasPerm('terminal.terminate_session')
|
||||
disabled: !this.session['can_terminate']
|
||||
},
|
||||
callbacks: {
|
||||
click: function() {
|
||||
@@ -60,7 +60,7 @@ export default {
|
||||
attrs: {
|
||||
type: 'primary',
|
||||
label: this.$t('sessions.Monitor'),
|
||||
disabled: !this.session['can_join'] || !vm.$hasPerm('terminal.monitor_session')
|
||||
disabled: !this.session['can_join']
|
||||
},
|
||||
callbacks: {
|
||||
click: function() {
|
||||
|
||||
Reference in New Issue
Block a user