diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-29 16:28:29 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-29 16:28:29 +0200 |
commit | 42e39d8d9e9f919422afc3020ab37dacf8b9dd3a (patch) | |
tree | c3dd6901c6d30abe08cb7ab5d41c4c116712d84f /ishtar_common/models.py | |
parent | e30953a0f8476142561c390fedb160dafc745cb9 (diff) | |
download | Ishtar-42e39d8d9e9f919422afc3020ab37dacf8b9dd3a.tar.bz2 Ishtar-42e39d8d9e9f919422afc3020ab37dacf8b9dd3a.zip |
Fix bad user permission management (refs #1369)
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r-- | ishtar_common/models.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 0a7c3e1f9..893c3b481 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -671,10 +671,10 @@ class Person(Address, OwnPerms) : def has_right(self, right_name): if type(right_name) in (list, tuple): return bool( - self.person_types.filter(txt_idx__in=right_name).count() or - self.person_types.filter(wizard__url_name__in=right_name).count()) - return bool(self.person_types.filter(txt_idx=right_name).count() or - self.person_types.filter(wizard__url_name=right_name).count()) + self.person_types.filter(txt_idx__in=right_name).count()) + # or self.person_types.filter(wizard__url_name__in=right_name).count()) + return bool(self.person_types.filter(txt_idx=right_name).count()) + # or self.person_types.filter(wizard__url_name=right_name).count()) def full_label(self): values = [] |