Implement hiding the graph and move elements out of boxes

This commit is contained in:
2022-08-27 18:14:52 +01:00
parent be20fb7a52
commit 383278245e
5 changed files with 21 additions and 8 deletions

View File

@@ -118,9 +118,7 @@ def obfuscate_list(user, data):
Obfuscate data in a list of dictionaries.
"""
if user.has_perm("core.bypass_obfuscation"):
print("USER HAS PERM")
return
print("NO HAVE PERM")
for index, item in enumerate(data):
for key, value in item.items():
# Obfuscate a ratio of the field