summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 10:19:26 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2025-02-19 14:45:57 +0100
commita70124ca7aee5f6865e6a3b8bc899197beefce1a (patch)
tree4b9c598ad23e04a4230f1dafc6fdf6933414eaa9 /ishtar_common
parent8bbb6cbd7bf229a1d6a8d8fb31e0ca4af4ef54d6 (diff)
downloadIshtar-a70124ca7aee5f6865e6a3b8bc899197beefce1a.tar.bz2
Ishtar-a70124ca7aee5f6865e6a3b8bc899197beefce1a.zip
🚑️ permissions: fix column filter on table exports
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/views_item.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ishtar_common/views_item.py b/ishtar_common/views_item.py
index 7ee3742d2..52444fed9 100644
--- a/ishtar_common/views_item.py
+++ b/ishtar_common/views_item.py
@@ -2159,6 +2159,9 @@ def _get_table_cols(request, data_type, own_table_cols, full, model):
if not hasattr(model, "TABLE_COLS_FILTERS"):
return table_cols
filtered_table_cols = []
+ if table_cols and isinstance(table_cols[0], (list, tuple)):
+ # table_cols for exports are contained inside a table
+ table_cols = table_cols[0]
for col_name in table_cols:
for key in model.TABLE_COLS_FILTERS:
if not col_name.startswith(key) or \