2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-17 12:35:46 +00:00

Refactor API tests for stock

This commit is contained in:
Oliver Walters
2021-02-26 21:53:54 +11:00
parent ee744be5fe
commit 9d099c81a7
3 changed files with 32 additions and 37 deletions

View File

@ -183,6 +183,7 @@ class RuleSet(models.Model):
if check_user_role(user, role, permission):
return True
print("failed permission check for", table, permission)
return False
@staticmethod