diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-12 15:43:15 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 |
commit | 13b9ef1c26bb89349a15be94db7d01512e270d5a (patch) | |
tree | bb7c35ca850f60028c576ee42e3fb95db20a64be /archaeological_context_records/ishtar_menu.py | |
parent | 7e6c628ff9f4d27609efda613b790f87bbeacea1 (diff) | |
download | Ishtar-13b9ef1c26bb89349a15be94db7d01512e270d5a.tar.bz2 Ishtar-13b9ef1c26bb89349a15be94db7d01512e270d5a.zip |
Refactor - clean
Diffstat (limited to 'archaeological_context_records/ishtar_menu.py')
-rw-r--r-- | archaeological_context_records/ishtar_menu.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/archaeological_context_records/ishtar_menu.py b/archaeological_context_records/ishtar_menu.py index fc02c5eef..a7efd8da4 100644 --- a/archaeological_context_records/ishtar_menu.py +++ b/archaeological_context_records/ishtar_menu.py @@ -26,22 +26,22 @@ from . import models # be carreful: each access_controls must be relevant with check_rights in urls MENU_SECTIONS = [ - (40, SectionItem('record_management', _(u"Context record"), + (40, SectionItem('record_management', _("Context record"), profile_restriction='context_record', css='menu-context-record', - childs=[MenuItem('record_search', _(u"Search"), + childs=[MenuItem('record_search', _("Search"), model=models.ContextRecord, access_controls=['view_contextrecord', 'view_own_contextrecord']), - MenuItem('record_creation', _(u"Creation"), + MenuItem('record_creation', _("Creation"), model=models.ContextRecord, access_controls=['add_contextrecord', 'add_own_contextrecord']), - MenuItem('record_modification', _(u"Modification"), + MenuItem('record_modification', _("Modification"), model=models.ContextRecord, access_controls=['change_contextrecord', 'change_own_contextrecord']), - MenuItem('record_deletion', _(u"Deletion"), + MenuItem('record_deletion', _("Deletion"), model=models.ContextRecord, access_controls=['delete_contextrecord', 'delete_own_contextrecord']), |