diff --git a/aleksis/apps/alsijil/rules.py b/aleksis/apps/alsijil/rules.py
index d10a5f48ace1c061f7ce10c93d83523a7da23bfc..72ddda20ce1eca248ff51030ae5d8cb44504d69d 100644
--- a/aleksis/apps/alsijil/rules.py
+++ b/aleksis/apps/alsijil/rules.py
@@ -83,7 +83,7 @@ edit_personal_note_predicate = view_personal_note_predicate & (
     ~is_own_personal_note
     & ~(
         is_personal_note_lesson_original_teacher
-        or not is_site_preference_set("alsijil", "edit_lesson_documentation_as_original_teacher")
+        | ~is_site_preference_set("alsijil", "edit_lesson_documentation_as_original_teacher")
     )
     | has_global_perm("alsijil.view_personalnote")
     | has_personal_note_group_perm("core.edit_personalnote_group")