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

Use correct permission names from Stoelindeling

parent 81c129d5
No related branches found
No related tags found
1 merge request!302Resolve "Seating plan integration uses wrong permission names"
Pipeline #86762 canceled
......@@ -15,6 +15,7 @@ Fixed
* Register absence form wasn't accessible without direct access to class register.
* Printing the full group register failed when a person had no personal notes.
* Data checks reported all Lesson Documentations as being during Holidays if there was no Holiday object.
* Group owners couldn't create new seating plans.
`2.1`_ - 2022-06-25
-------------------
......
......@@ -55,7 +55,7 @@
<i class="material-icons left small orange-text">warning</i>
{% trans "There is no seating plan for this lesson." %}
</div>
{% has_perm "stoelindeling.add_seatingplan_rule" user first_group as can_add %}
{% has_perm "stoelindeling.create_seatingplan_rule" user first_group as can_add %}
{% if can_add %}
<div class="row margin-bottom">
<div class="col s12">
......@@ -69,7 +69,7 @@
</div>
{% endif %}
{% for parent_group in first_group.parent_groups.all %}
{% has_perm "stoelindeling.add_seatingplan_rule" user parent_group as can_add %}
{% has_perm "stoelindeling.create_seatingplan_rule" user parent_group as can_add %}
{% if can_add %}
<div class="row">
<div class="col s12">
......
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