2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-07-05 13:10:57 +00:00

Add or remove permissions from groups as defined by the RuleSet links

- Only runs when the group is changed
- Does not add permissions if they already exist
- Does not remove permissions if they do not exist
This commit is contained in:
Oliver Walters
2020-10-04 12:18:31 +11:00
parent d5c0c12d78
commit c19c014f55
2 changed files with 73 additions and 17 deletions

View File

@ -76,7 +76,6 @@ class RuleSetModelTest(TestCase):
print("{n} is not a valid database table".format(n=m))
errors += 1
missing_models = []
for model in available_tables:
@ -89,4 +88,4 @@ class RuleSetModelTest(TestCase):
print("-", m)
self.assertEqual(errors, 0)
self.assertEqual(len(missing_models), 0)
self.assertEqual(len(missing_models), 0)