Skip to content
Snippets Groups Projects
Commit a75833f1 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Merge branch 'fix/use-of-has_any_object' into 'master'

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

See merge request !192
parents ad0887b3 24954283
No related branches found
No related tags found
1 merge request!192Drop usage of non-existing permission in permission rules for lesson substitutions
Pipeline #24886 canceled
......@@ -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