mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-04 17:01:09 +00:00
feat: 授权规则分类管理
This commit is contained in:
9
apps/perms/const.py
Normal file
9
apps/perms/const.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
from django.db.models import TextChoices
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
|
||||
|
||||
class AuthorizationRules(TextChoices):
|
||||
manual = 'manual', _('Manual authorization')
|
||||
ticket = 'ticket', _('Ticket authorization')
|
Reference in New Issue
Block a user