2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-06 20:11:37 +00:00

Adds unit testing for fancy new metadata class

This commit is contained in:
Oliver
2021-06-23 20:58:05 +10:00
parent eaa5913c8c
commit 82a6ff7772
6 changed files with 119 additions and 21 deletions

View File

@@ -208,7 +208,7 @@ class RuleSet(models.Model):
return True
# Print message instead of throwing an error
print("Failed permission check for", table, permission)
logger.info(f"User '{user.name}' failed permission check for {table}.{permission}")
return False
@staticmethod