mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-25 14:50:24 +00:00
Perf: 优化RBAC权限树 (#7782)
* fix: 优化权限树(1) * fix: 优化权限树(2) * fix: 优化权限树(3) * fix: 优化权限树(4) * fix: 优化权限树(5) * fix: 优化权限树(添加迁移文件) * fix: 优化权限树(6) * fix: 优化权限树(7) * fix: 优化权限树(8) * fix: 优化权限树(9)
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
# Generated by Django 3.1.14 on 2022-03-09 22:16
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('applications', '0018_auto_20220223_1539'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.CreateModel(
|
||||
name='DatabaseApp',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Database application',
|
||||
'proxy': True,
|
||||
'indexes': [],
|
||||
'constraints': [],
|
||||
},
|
||||
bases=('applications.application',),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='KubernetesApp',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Kubernetes',
|
||||
'proxy': True,
|
||||
'indexes': [],
|
||||
'constraints': [],
|
||||
},
|
||||
bases=('applications.application',),
|
||||
),
|
||||
migrations.CreateModel(
|
||||
name='RemoteApp',
|
||||
fields=[
|
||||
],
|
||||
options={
|
||||
'verbose_name': 'Remote application',
|
||||
'proxy': True,
|
||||
'indexes': [],
|
||||
'constraints': [],
|
||||
},
|
||||
bases=('applications.application',),
|
||||
),
|
||||
]
|
@@ -266,3 +266,21 @@ class ApplicationUser(SystemUser):
|
||||
class Meta:
|
||||
proxy = True
|
||||
verbose_name = _('Application user')
|
||||
|
||||
|
||||
class RemoteApp(Application):
|
||||
class Meta:
|
||||
proxy = True
|
||||
verbose_name = _('Remote application')
|
||||
|
||||
|
||||
class DatabaseApp(Application):
|
||||
class Meta:
|
||||
proxy = True
|
||||
verbose_name = _('Database application')
|
||||
|
||||
|
||||
class KubernetesApp(Application):
|
||||
class Meta:
|
||||
proxy = True
|
||||
verbose_name = _('Kubernetes')
|
||||
|
Reference in New Issue
Block a user