diff --git a/CHANGELOG.rst b/CHANGELOG.rst index baf42bfa8c74225576adb357adb3d1aab7cb53ab..73b91db9059ffa4f989a71e21c67004e3b7227a3 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 d34a3f494ee0e3d06ef6574ac2f4ff8d4f01104b..5dcfd20aafc4048fbe23dbc5f78d004d4ac7533a 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)