Skip to content
Snippets Groups Projects
Commit 4b585d77 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Merge branch 'add-missing-rule' into 'master'

Add missing menu rule

See merge request !19
parents 5485c717 d6c6a196
No related branches found
No related tags found
1 merge request!19Add missing menu rule
......@@ -49,3 +49,8 @@ delete_absencereason_predicate = has_person & (
has_global_perm("kolego.delete_absencereason") | has_object_perm("kolego.delete_absencereason")
)
rules.add_perm("kolego.delete_absencereason_rule", delete_absencereason_predicate)
view_menu_predicate = has_person & (
view_absences_predicate | view_absencereasons_predicate
)
rules.add_perm("kolego.view_menu_rule", 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