diff --git a/aleksis/apps/chronos/rules.py b/aleksis/apps/chronos/rules.py index d814dd5b22adc24acdbbfc4c496875983bb1a626..34d58360ce18353231f56acccf1a00818f479fbb 100644 --- a/aleksis/apps/chronos/rules.py +++ b/aleksis/apps/chronos/rules.py @@ -1,13 +1,11 @@ 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