mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Reverted print statement to logger
This commit is contained in:
parent
ef70e665bb
commit
fd63fcde43
@ -246,7 +246,7 @@ class RuleSet(models.Model):
|
||||
# Print message instead of throwing an error
|
||||
name = getattr(user, 'name', user.pk)
|
||||
|
||||
print(f"User '{name}' failed permission check for {table}.{permission}")
|
||||
logger.info(f"User '{name}' failed permission check for {table}.{permission}")
|
||||
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user