mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-21 03:19:52 +00:00
perf: 授权分类采用from_ticket字段
This commit is contained in:
@@ -5,7 +5,6 @@ from .base import BaseHandler
|
||||
from django.utils.translation import ugettext as _
|
||||
|
||||
from perms.models import AssetPermission, Action
|
||||
from perms.const import AuthorizationRules
|
||||
from orgs.utils import tmp_to_org, tmp_to_root_org
|
||||
|
||||
|
||||
@@ -84,7 +83,7 @@ class Handler(BaseHandler):
|
||||
permission_data = {
|
||||
'id': self.ticket.id,
|
||||
'name': apply_permission_name,
|
||||
'authorization_rules': AuthorizationRules.ticket,
|
||||
'from_ticket': True,
|
||||
'comment': str(permission_comment),
|
||||
'created_by': permission_created_by,
|
||||
'actions': apply_actions,
|
||||
|
Reference in New Issue
Block a user