Browse Source

perf: 权限树翻译 (#12396)

Co-authored-by: feng <1304903146@qq.com>
pull/12397/head
fit2bot 11 months ago committed by GitHub
parent
commit
dc56b019b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/labels/apps.py
  2. 1
      apps/rbac/const.py

2
apps/labels/apps.py

@ -1,6 +1,8 @@
from django.apps import AppConfig
from django.utils.translation import gettext_lazy as _
class LabelsConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'labels'
verbose_name = _('Labels')

1
apps/rbac/const.py

@ -28,6 +28,7 @@ exclude_permissions = (
('authentication', 'superconnectiontoken', 'change,delete', 'superconnectiontoken'),
('authentication', 'temptoken', 'delete', 'temptoken'),
('users', 'userpasswordhistory', '*', '*'),
('users', 'usersession', '*', '*'),
('assets', 'adminuser', '*', '*'),
('assets', 'assetgroup', '*', '*'),
('assets', 'cluster', '*', '*'),

Loading…
Cancel
Save