From 249542832c90aeb715031826bc2dd1d082a0b6e1 Mon Sep 17 00:00:00 2001 From: Jonathan Weth <git@jonathanweth.de> Date: Sun, 1 Aug 2021 14:25:25 +0200 Subject: [PATCH] Drop usage of non-existing permission in permission rules for lesson substitutions --- CHANGELOG.rst | 8 ++++++++ aleksis/apps/chronos/rules.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index baf42bfa..73b91db9 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file. The format is based on `Keep a Changelog`_, and this project adheres to `Semantic Versioning`_. +Unreleased +---------- + +Fixed +~~~~~ + +* Drop usage of non-existing permission in permission rules for lesson substitutions. + `2.0rc1`_ - 2021-06-23 ---------------------- diff --git a/aleksis/apps/chronos/rules.py b/aleksis/apps/chronos/rules.py index d34a3f49..5dcfd20a 100644 --- a/aleksis/apps/chronos/rules.py +++ b/aleksis/apps/chronos/rules.py @@ -44,7 +44,7 @@ add_perm("chronos.delete_substitution_rule", delete_substitution_predicate) # View substitutions view_substitutions_predicate = has_person & ( has_global_perm("chronos.view_lessonsubstitution") - | has_any_object("chronos.view_lessonsubstitution_rule", LessonSubstitution) + | has_any_object("chronos.view_lessonsubstitution", LessonSubstitution) ) add_perm("chronos.view_substitutions_rule", view_substitutions_predicate) -- GitLab