mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-06 01:40:52 +00:00
[Update]
This commit is contained in:
@@ -5,7 +5,7 @@ python ../apps/manage.py shell << EOF
|
||||
from perms.models import *
|
||||
|
||||
for old in NodePermission.objects.all():
|
||||
perm = asset_perm_model.objects.using(db_alias).create(
|
||||
perm = AssetPermission.objects.create(
|
||||
name="{}-{}-{}".format(
|
||||
old.node.value,
|
||||
old.user_group.name,
|
||||
|
Reference in New Issue
Block a user