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

Drop usage of non-existing permission in permission rules for lesson substitutions

parent ad0887b3
No related branches found
No related tags found
1 merge request!192Drop usage of non-existing permission in permission rules for lesson substitutions
Pipeline #24880 passed with warnings
......@@ -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
----------------------
......
......@@ -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)
......
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