mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-17 20:45:44 +00:00
(cherry picked from commit 22ba802d69
)
Co-authored-by: Gustaf Järgren <gurreja@gmail.com>
This commit is contained in:
committed by
GitHub
parent
9b759d2689
commit
92759a5671
2
tasks.py
2
tasks.py
@ -713,7 +713,6 @@ def export_records(
|
||||
|
||||
data_out = []
|
||||
|
||||
if include_permissions is False:
|
||||
for entry in data:
|
||||
model_name = entry.get('model', None)
|
||||
|
||||
@ -722,6 +721,7 @@ def export_records(
|
||||
if entry['fields'].get('key', '').startswith('_'):
|
||||
continue
|
||||
|
||||
if include_permissions is False:
|
||||
if model_name == 'auth.group':
|
||||
entry['fields']['permissions'] = []
|
||||
|
||||
|
Reference in New Issue
Block a user