From 3534d7e663b5d2d4b22b71c718569e2f919fadd1 Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Sun, 1 Nov 2020 14:04:37 +0100
Subject: [PATCH] Fix broken permission rule

---
 aleksis/apps/alsijil/rules.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/aleksis/apps/alsijil/rules.py b/aleksis/apps/alsijil/rules.py
index 3ff73d657..7959099b1 100644
--- a/aleksis/apps/alsijil/rules.py
+++ b/aleksis/apps/alsijil/rules.py
@@ -52,7 +52,7 @@ add_perm("alsijil.view_lesson_personalnote", view_lesson_personal_notes_predicat
 
 # Edit personal note
 edit_lesson_personal_note_predicate = view_lesson_personal_notes_predicate & (
-    ~is_lesson_parent_group_owner
+    is_lesson_teacher
     | has_global_perm("alsijil.change_personalnote")
     | has_lesson_group_object_perm("core.edit_personalnote_group")
 )
-- 
GitLab