mirror of
https://github.com/jumpserver/lina.git
synced 2026-01-13 19:35:24 +00:00
fix: 修复存储测试权限位
This commit is contained in:
committed by
Jiangjie.Bai
parent
435e324b44
commit
e9674fd754
@@ -82,7 +82,7 @@ export default {
|
||||
name: 'test',
|
||||
title: this.$t('sessions.test'),
|
||||
type: 'primary',
|
||||
can: vm.$hasPerm('terminal.change_commandstorage'),
|
||||
can: vm.$hasPerm('terminal.view_commandstorage'),
|
||||
callback: function({ row, col, cellValue, reload }) {
|
||||
TestCommandStorage(row.id).then(data => {
|
||||
if (!data['is_valid']) {
|
||||
|
||||
@@ -73,7 +73,7 @@ export default {
|
||||
{
|
||||
name: 'test',
|
||||
title: this.$t('sessions.test'),
|
||||
can: vm.$hasPerm('terminal.change_replaystorage'),
|
||||
can: vm.$hasPerm('terminal.view_replaystorage'),
|
||||
type: 'primary',
|
||||
callback: function({ row, col, cellValue, reload }) {
|
||||
TestReplayStorage(row.id).then(data => {
|
||||
|
||||
Reference in New Issue
Block a user