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
commit1e5dd71a5967ede57a8317b11480dbdfa17d4bbb (patch)
treeca945f5aae6c049a562be219a3d15dcae2d2a955 /ishtar_common/models.py
parent3795281cfb51f350866429f6b343ba28112c7f84 (diff)
downloadIshtar-1e5dd71a5967ede57a8317b11480dbdfa17d4bbb.tar.bz2
Ishtar-1e5dd71a5967ede57a8317b11480dbdfa17d4bbb.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):