2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 04:25:42 +00:00

More fixes

This commit is contained in:
Oliver Walters
2021-04-20 10:59:28 +10:00
parent 6b9145ae56
commit 0fbf39f1bc
3 changed files with 30 additions and 5 deletions

View File

@ -57,6 +57,7 @@ class RuleSet(models.Model):
'auth_user',
'auth_permission',
'authtoken_token',
'authtoken_tokenproxy',
'users_ruleset',
],
'part_category': [
@ -199,7 +200,8 @@ class RuleSet(models.Model):
if check_user_role(user, role, permission):
return True
print("failed permission check for", table, permission)
# Print message instead of throwing an error
print("Failed permission check for", table, permission)
return False
@staticmethod