mirror of https://github.com/jumpserver/jumpserver
fix: 删除错误的改密权限
parent
314257f790
commit
bf0d9f4b80
|
@ -38,7 +38,7 @@ class Migration(migrations.Migration):
|
|||
'verbose_name': 'Automation execution',
|
||||
'verbose_name_plural': 'Automation executions',
|
||||
'permissions': [('view_changesecretexecution', 'Can view change secret execution'),
|
||||
('add_changesecretexection', 'Can add change secret execution'),
|
||||
('add_changesecretexecution', 'Can add change secret execution'),
|
||||
('view_gatheraccountsexecution', 'Can view gather accounts execution'),
|
||||
('add_gatheraccountsexecution', 'Can add gather accounts execution')],
|
||||
'proxy': True,
|
||||
|
@ -184,7 +184,7 @@ class Migration(migrations.Migration):
|
|||
migrations.AlterModelOptions(
|
||||
name='automationexecution',
|
||||
options={'permissions': [('view_changesecretexecution', 'Can view change secret execution'),
|
||||
('add_changesecretexection', 'Can add change secret execution'),
|
||||
('add_changesecretexecution', 'Can add change secret execution'),
|
||||
('view_gatheraccountsexecution', 'Can view gather accounts execution'),
|
||||
('add_gatheraccountsexecution', 'Can add gather accounts execution'),
|
||||
('view_pushaccountexecution', 'Can view push account execution'),
|
||||
|
|
|
@ -33,7 +33,7 @@ class AutomationExecution(AssetAutomationExecution):
|
|||
verbose_name_plural = _("Automation executions")
|
||||
permissions = [
|
||||
('view_changesecretexecution', _('Can view change secret execution')),
|
||||
('add_changesecretexection', _('Can add change secret execution')),
|
||||
('add_changesecretexecution', _('Can add change secret execution')),
|
||||
|
||||
('view_gatheraccountsexecution', _('Can view gather accounts execution')),
|
||||
('add_gatheraccountsexecution', _('Can add gather accounts execution')),
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
# Generated by Django 4.1.10 on 2023-10-20 07:01
|
||||
|
||||
from django.db import migrations
|
||||
|
||||
|
||||
def migrate_remove_add_changesecretexection_permission(apps, *args):
|
||||
perm_model = apps.get_model('auth', 'Permission')
|
||||
perm_model.objects.filter(codename='add_changesecretexection').delete()
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
('rbac', '0011_remove_redundant_permission'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.RunPython(migrate_remove_add_changesecretexection_permission)
|
||||
]
|
|
@ -88,7 +88,7 @@ special_pid_mapper = {
|
|||
"accounts.add_gatheraccountsexecution": "gather_account_node",
|
||||
"accounts.changesecretautomation": "asset_change_plan_node",
|
||||
"accounts.view_changesecretexecution": "asset_change_plan_node",
|
||||
"accounts.add_changesecretexection": "asset_change_plan_node",
|
||||
"accounts.add_changesecretexecution": "asset_change_plan_node",
|
||||
"accounts.view_changesecretrecord": "asset_change_plan_node",
|
||||
'orgs.organization': 'view_setting',
|
||||
'settings.setting': 'view_setting',
|
||||
|
|
Loading…
Reference in New Issue