summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-13 12:52:12 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-04-13 12:52:12 +0200
commit1b642d737b55c20ea2b83afbf63d701acd25fc00 (patch)
treeca945f5aae6c049a562be219a3d15dcae2d2a955 /ishtar_common/models.py
parentd5664fbc9754e987f124444f9dcc02e46d20e0ad (diff)
downloadIshtar-1b642d737b55c20ea2b83afbf63d701acd25fc00.tar.bz2
Ishtar-1b642d737b55c20ea2b83afbf63d701acd25fc00.zip
Access control: fix show own item (not *all* items) (refs #3593)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 77b4ed335..f1de8c60a 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -125,7 +125,7 @@ def check_model_access_control(request, model, available_perms=None):
if "_own_" not in perm:
own = False
break # max right reach
- return allowed, own
+ return allowed, own
class Imported(models.Model):