perf: 优化 rbac

This commit is contained in:
ibuler
2023-02-21 13:39:28 +08:00
parent f4cc03434f
commit 0001ffba1b
14 changed files with 86 additions and 28 deletions

View File

@@ -50,7 +50,6 @@ class Migration(migrations.Migration):
options={
'verbose_name': 'Account',
'permissions': [('view_accountsecret', 'Can view asset account secret'),
('change_accountsecret', 'Can change asset account secret'),
('view_historyaccount', 'Can view asset history account'),
('view_historyaccountsecret', 'Can view asset history account secret')],
'unique_together': {('username', 'asset', 'secret_type'), ('name', 'asset')},