summaryrefslogtreecommitdiff
path: root/ishtar_common/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r--ishtar_common/views.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py
index 79e816bcb..a18673b44 100644
--- a/ishtar_common/views.py
+++ b/ishtar_common/views.py
@@ -321,7 +321,7 @@ def get_item(model, func_name, default_name, extra_request_keys=[],
"""
Generic treatment of tables
"""
- def func(request, data_type='json', full=False, **dct):
+ def func(request, data_type='json', full=False, force_own=False, **dct):
# check rights
own = True # more restrictive by default
allowed = False
@@ -337,6 +337,8 @@ def get_item(model, func_name, default_name, extra_request_keys=[],
if "_own_" not in perm:
own = False
break # max right reach
+ if force_own:
+ own = True
EMPTY = ''
if 'type' in dct:
data_type = dct.pop('type')