mirror of https://github.com/jumpserver/jumpserver
fix: 修复参数取值错误
parent
0436487bdb
commit
539babcc97
|
@ -228,6 +228,7 @@ class InsecureCommandAlertAPI(generics.CreateAPIView):
|
|||
command.update({
|
||||
'_user_id': session.user_id,
|
||||
'_asset_id': session.asset_id,
|
||||
'_account': session.account,
|
||||
'_account_id': session.account_id,
|
||||
'_org_name': session.org.name
|
||||
})
|
||||
|
|
|
@ -83,7 +83,7 @@ class CommandWarningMessage(CommandAlertMixin, UserMessage):
|
|||
user_id = command.get('_user_id', '')
|
||||
asset = command['asset']
|
||||
asset_id = command.get('_asset_id', '')
|
||||
account = command['account']
|
||||
account = command['_account']
|
||||
account_id = command.get('_account_id', '')
|
||||
cmd_acl = command.get('_cmd_filter_acl')
|
||||
cmd_group = command.get('_cmd_group')
|
||||
|
|
Loading…
Reference in New Issue