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

Fixed permission for absence register

parent f3cc545c
No related branches found
No related tags found
1 merge request!49Resolve "Add rules and permissions"
Pipeline #2779 passed
This commit is part of merge request !72. Comments created here will be created in the context of that merge request.
......@@ -85,7 +85,7 @@ add_perm("alsijil.view_week_personalnote", view_week_personal_notes_predicate)
register_absence_predicate = has_person & (
has_global_perm("alsijil.register_absence")
| has_person_group_object_perm("core.register_absence_group")
| has_global_perm("core.register_absence_person")
| has_object_perm("core.register_absence_person")
| is_person_group_owner
)
add_perm("alsijil.register_absence", register_absence_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