mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-15 21:05:33 +00:00
Adds unit testing for fancy new metadata class
This commit is contained in:
1 parent
eaa5913c8c
commit
82a6ff7772
6 files changed
+119
-21
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user