mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
713 B
21 lines
713 B
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_console', _('Can view console view')),
|
|
('view_audit', _('Can view audit view')),
|
|
('view_workspace', _('Can view workspace view')),
|
|
('view_webterminal', _('Can view web terminal')),
|
|
('view_filemanager', _('Can view file manager')),
|
|
]
|