mirror of https://github.com/jumpserver/jumpserver
19 lines
560 B
Python
19 lines
560 B
Python
import uuid
|
|
|
|
from django.utils.translation import gettext_lazy as _
|
|
from django.db import models
|
|
|
|
|
|
class MenuPermission(models.Model):
|
|
""" 附加权限位类,用来定义无资源类的权限,不做实体资源 """
|
|
id = models.UUIDField(default=uuid.uuid4, primary_key=True)
|
|
|
|
class Meta:
|
|
default_permissions = []
|
|
verbose_name = _('Menu permission')
|
|
permissions = [
|
|
('view_adminview', _('Admin view')),
|
|
('view_auditview', _('Audit view')),
|
|
('view_userview', _('User view')),
|
|
]
|