summaryrefslogtreecommitdiff
path: root/archaeological_operations/ishtar_menu.py
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_operations/ishtar_menu.py')
-rw-r--r--archaeological_operations/ishtar_menu.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/archaeological_operations/ishtar_menu.py b/archaeological_operations/ishtar_menu.py
index 60f764ab7..5a22efd05 100644
--- a/archaeological_operations/ishtar_menu.py
+++ b/archaeological_operations/ishtar_menu.py
@@ -17,17 +17,15 @@
# See the file COPYING for details.
-from django.conf import settings
from django.utils.translation import ugettext_lazy as _, pgettext_lazy
from ishtar_common.menu_base import SectionItem, MenuItem
+from ishtar_common.models import get_current_profile
import models
# be carreful: each access_controls must be relevant with check_rights in urls
-FILES_AVAILABLE = 'archaeological_files' in settings.INSTALLED_APPS
-
MENU_SECTIONS = [
(30, SectionItem(
'operation_management', _(u"Operation"),
@@ -98,7 +96,7 @@ MENU_SECTIONS = [
),
]
-if FILES_AVAILABLE:
+if get_current_profile().files:
MENU_SECTIONS.insert(
1,
(