mirror of https://github.com/jumpserver/jumpserver
[Update]
parent
8b3b517bab
commit
a31b7a8800
|
@ -5,7 +5,7 @@ python ../apps/manage.py shell << EOF
|
||||||
from perms.models import *
|
from perms.models import *
|
||||||
|
|
||||||
for old in NodePermission.objects.all():
|
for old in NodePermission.objects.all():
|
||||||
perm = asset_perm_model.objects.using(db_alias).create(
|
perm = AssetPermission.objects.create(
|
||||||
name="{}-{}-{}".format(
|
name="{}-{}-{}".format(
|
||||||
old.node.value,
|
old.node.value,
|
||||||
old.user_group.name,
|
old.user_group.name,
|
||||||
|
|
Loading…
Reference in New Issue