perf: 授权分类采用from_ticket字段

This commit is contained in:
feng626
2021-09-06 10:46:12 +08:00
committed by 老广
parent 9fb6fd44d1
commit 0a3e5aed56
6 changed files with 26 additions and 36 deletions

View File

@@ -3,7 +3,6 @@ from orgs.utils import tmp_to_org, tmp_to_root_org
from applications.const import AppCategory, AppType
from applications.models import Application
from perms.models import ApplicationPermission
from perms.const import AuthorizationRules
from assets.models import SystemUser
from .base import BaseHandler
@@ -90,7 +89,7 @@ class Handler(BaseHandler):
permissions_data = {
'id': self.ticket.id,
'name': apply_permission_name,
'authorization_rules': AuthorizationRules.ticket,
'from_ticket': True,
'category': apply_category,
'type': apply_type,
'comment': str(permission_comment),