mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-10 20:00:10 +00:00
perf: change Command
This commit is contained in:
@@ -106,11 +106,9 @@ class CommandFilterACL(UserAssetAccountBaseACL):
|
||||
return self.name
|
||||
|
||||
def create_command_review_ticket(self, run_command, session, cmd_filter_acl, org_id):
|
||||
from tickets.const import TicketType
|
||||
from tickets.models import ApplyCommandTicket
|
||||
data = {
|
||||
'title': _('Command confirm') + ' ({})'.format(session.user),
|
||||
'type': TicketType.command_confirm,
|
||||
'applicant': session.user_obj,
|
||||
'apply_run_user_id': session.user_id,
|
||||
'apply_run_asset': str(session.asset),
|
||||
|
Reference in New Issue
Block a user