summaryrefslogtreecommitdiff
path: root/ishtar_common/menu_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/menu_base.py')
-rw-r--r--ishtar_common/menu_base.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ishtar_common/menu_base.py b/ishtar_common/menu_base.py
index 37f482219..11ce4e688 100644
--- a/ishtar_common/menu_base.py
+++ b/ishtar_common/menu_base.py
@@ -62,8 +62,7 @@ class MenuItem:
return True
# manage by person type
if hasattr(user, 'ishtaruser'):
- person_type = user.ishtaruser.person.person_type
- if person_type.rights.filter(wizard__url_name=self.idx).count():
+ if ishtar_user.has_right(self.idx):
return True
return False
@@ -76,8 +75,7 @@ class MenuItem:
return True
# manage by person type
if hasattr(user, 'ishtaruser'):
- person_type = user.ishtaruser.person.person_type
- if person_type.rights.filter(wizard__url_name=self.idx).count():
+ if ishtar_user.has_right(self.idx):
return True
return False