Skip to content
Snippets Groups Projects
Commit c067dd2d authored by Hangzhi Yu's avatar Hangzhi Yu
Browse files

Adapt rule for viewing menu to actual rules needed to view submenu routes

parent b516ded7
No related branches found
No related tags found
1 merge request!47Resolve "view_registrations_rule is included as a sufficient rule for viewing the menu even though it is not relevant"
Pipeline #135933 failed
......@@ -239,11 +239,10 @@ rules.add_perm("paweljong.create_registration_states_rule", create_registration_
# View menu
can_view_menu_predicate = has_person & (
view_registrations_predicate
| view_info_mailings_predicate
view_info_mailings_predicate
| view_terms_predicate
| view_vouchers_predicate
| view_events_predicate
| change_events_predicate
| view_registration_states_predicate
)
rules.add_perm("paweljong.view_menu", can_view_menu_predicate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment