mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2024-11-26 09:53:12 +01:00
correct black formatting for object_permissions.py
This commit is contained in:
parent
528bc17eb8
commit
12401f2a3f
@ -33,9 +33,7 @@ for permission_name, permission_details in object_permissions.items():
|
|||||||
|
|
||||||
if group:
|
if group:
|
||||||
object_permission.groups.add(group)
|
object_permission.groups.add(group)
|
||||||
print(
|
print(" 👥 Assigned group %s object permission of %s" % (groupname, groupname))
|
||||||
" 👥 Assigned group %s object permission of %s" % (groupname, groupname)
|
|
||||||
)
|
|
||||||
|
|
||||||
if permission_details.get("users", 0):
|
if permission_details.get("users", 0):
|
||||||
for username in permission_details["users"]:
|
for username in permission_details["users"]:
|
||||||
@ -43,8 +41,6 @@ for permission_name, permission_details in object_permissions.items():
|
|||||||
|
|
||||||
if user:
|
if user:
|
||||||
object_permission.users.add(user)
|
object_permission.users.add(user)
|
||||||
print(
|
print(" 👤 Assigned user %s object permission of %s" % (username, groupname))
|
||||||
" 👤 Assigned user %s object permission of %s" % (username, groupname)
|
|
||||||
)
|
|
||||||
|
|
||||||
object_permission.save()
|
object_permission.save()
|
||||||
|
Loading…
Reference in New Issue
Block a user