mirror of https://github.com/jumpserver/jumpserver
19 lines
499 B
Python
19 lines
499 B
Python
|
# Generated by Django 4.1.10 on 2023-12-08 07:48
|
||
|
|
||
|
from django.db import migrations
|
||
|
|
||
|
|
||
|
def migrate_remove_offline_ussrsession_permission(apps, *args):
|
||
|
perm_model = apps.get_model('auth', 'Permission')
|
||
|
perm_model.objects.filter(codename='offline_ussrsession').delete()
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
dependencies = [
|
||
|
('rbac', '0013_alter_menupermission_options'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.RunPython(migrate_remove_offline_ussrsession_permission)
|
||
|
]
|