2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-14 11:05:41 +00:00

fix(backend): record export is empty when include permissions flag is used (#9704)

This commit is contained in:
Gustaf Järgren
2025-06-02 12:24:05 +02:00
committed by GitHub
parent e5e6c1b51e
commit 22ba802d69

View File

@ -876,7 +876,6 @@ def export_records(
data_out = []
if include_permissions is False:
for entry in data:
model_name = entry.get('model', None)
@ -885,6 +884,7 @@ def export_records(
if entry['fields'].get('key', '').startswith('_'):
continue
if include_permissions is False:
if model_name == 'auth.group':
entry['fields']['permissions'] = []