From 3d1831300b177706193c4677cfffd0ed80c7e6fe Mon Sep 17 00:00:00 2001
From: Jonathan Weth <git@jonathanweth.de>
Date: Tue, 6 Sep 2022 19:47:54 +0200
Subject: [PATCH] Reword misleading error message in permission form

---
 CHANGELOG.rst         | 5 +++++
 aleksis/core/forms.py | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 8743e2a60..3f2090cb0 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -21,6 +21,11 @@ Changed
 * Rewrite of frontend using Vuetify
 * OIDC scope "profile" now exposes the avatar instead of the official photo
 
+Fixed
+~~~~~
+
+* Error message in permission form was misleading.
+
 Removed
 ~~~~~~~
 
diff --git a/aleksis/core/forms.py b/aleksis/core/forms.py
index b3c3493e7..05ebef2f4 100644
--- a/aleksis/core/forms.py
+++ b/aleksis/core/forms.py
@@ -496,7 +496,7 @@ class AssignPermissionForm(forms.Form):
 
         if not cleaned_data.get("objects") and not cleaned_data.get("all_objects"):
             raise ValidationError(
-                _("You must grant the permission to all objects and/" "or to some objects.")
+                _("You must grant the permission to all objects or to specific objects.")
             )
         return cleaned_data
 
-- 
GitLab