feat: 授权规则分类管理

This commit is contained in:
feng626
2021-08-31 14:13:05 +08:00
parent ae80797ce4
commit 4214b220e1
8 changed files with 50 additions and 10 deletions

View File

@@ -3,6 +3,7 @@ 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
@@ -89,6 +90,7 @@ class Handler(BaseHandler):
permissions_data = {
'id': self.ticket.id,
'name': apply_permission_name,
'authorization_rules': AuthorizationRules.ticket,
'category': apply_category,
'type': apply_type,
'comment': str(permission_comment),