diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-04-17 17:05:28 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-06-12 08:41:54 +0200 |
commit | b3d5880640c88864dab0f0dbc021d5bc19085307 (patch) | |
tree | 9c847f264b16ef021f71602c03e4b8eb5aeb9417 /ishtar_common/views.py | |
parent | 6da9f6fcfd9f7a2e3e50b5b69620aa4b0f2b9de3 (diff) | |
download | Ishtar-b3d5880640c88864dab0f0dbc021d5bc19085307.tar.bz2 Ishtar-b3d5880640c88864dab0f0dbc021d5bc19085307.zip |
Fix menu initialization
Diffstat (limited to 'ishtar_common/views.py')
-rw-r--r-- | ishtar_common/views.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/ishtar_common/views.py b/ishtar_common/views.py index 5266f6cd7..e5fdff2fe 100644 --- a/ishtar_common/views.py +++ b/ishtar_common/views.py @@ -465,13 +465,9 @@ def update_current_item(request, item_type=None, pk=None): return HttpResponse('ok') -MAIN_MENU = None - - def check_permission(request, action_slug, obj_id=None): - if not MAIN_MENU: - MAIN_MENU = Menu(None) - MAIN_MENU.init() + MAIN_MENU = Menu(None) + MAIN_MENU.init() if action_slug not in MAIN_MENU.items: # TODO return True |