From 0179d302989bf607f0ea4fa7c5aac2c94705b9dc Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sun, 11 Aug 2024 19:05:37 +0200 Subject: [PATCH] Reformat --- aleksis/apps/chronos/rules.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/aleksis/apps/chronos/rules.py b/aleksis/apps/chronos/rules.py index d814dd5b..34d58360 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 -- GitLab