Skip to content
Snippets Groups Projects
Verified Commit 0179d302 authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Reformat

parent 8c6aa254
No related branches found
No related tags found
1 merge request!315Resolve "Substitutions PDF for new data model"
from rules import add_perm
from aleksis.core.util.predicates import (
has_any_object,
has_global_perm,
has_object_perm,
has_person,
)
from .models import LessonSubstitution
from .util.predicates import has_any_timetable_object, has_room_timetable_perm, has_timetable_perm
# View timetable overview
......@@ -42,9 +40,7 @@ delete_substitution_predicate = has_person & (
add_perm("chronos.delete_substitution_rule", delete_substitution_predicate)
# View substitutions
view_substitutions_predicate = has_person & (
has_global_perm("chronos.view_lessonsubstitution")
)
view_substitutions_predicate = has_person & (has_global_perm("chronos.view_lessonsubstitution"))
add_perm("chronos.view_substitutions_rule", view_substitutions_predicate)
# View all supervisions per day
......
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