mirror of
https://github.com/inventree/InvenTree.git
synced 2026-11-18 22:17:51 +00:00
Fixes:
- Use DRF ImageField, not FileField - Ensure that permissions get updated correctly in 'test' mode - Allow file upload in the APITester class
This commit is contained in:
1 parent
a866001ffe
commit
5ba7aeaa27
8 files changed
+88
-12
No files matched your search
@@ -13,7 +13,7 @@ class UsersConfig(AppConfig):
|
||||
|
||||
def ready(self):
|
||||
|
||||
if canAppAccessDatabase():
|
||||
if canAppAccessDatabase(allow_test=True):
|
||||
|
||||
try:
|
||||
self.assign_permissions()
|
||||
|
||||
@@ -276,7 +276,7 @@ def update_group_roles(group, debug=False):
|
||||
|
||||
"""
|
||||
|
||||
if not canAppAccessDatabase():
|
||||
if not canAppAccessDatabase(allow_test=True):
|
||||
return
|
||||
|
||||
# List of permissions already associated with this group
|
||||
|
||||
Reference in new issue
Block a user