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:
@@ -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