about summary refs log tree commit diff
path: root/gn_auth
diff options
context:
space:
mode:
Diffstat (limited to 'gn_auth')
-rw-r--r--gn_auth/auth/authorisation/roles/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/roles/models.py b/gn_auth/auth/authorisation/roles/models.py
index 699e3b3..b559bff 100644
--- a/gn_auth/auth/authorisation/roles/models.py
+++ b/gn_auth/auth/authorisation/roles/models.py
@@ -27,8 +27,8 @@ class Role:
 def check_user_editable(role: Role):
     """Raise an exception if `role` is not user editable."""
     if not role.user_editable:
-        raise AuthorisationError(
-            f"The role `{role.role_name}` is not user editable.")
+        raise AuthorisationError(f"The role `{role.role_name}` is a default "
+                                 "role and thus cannot be edited/changed.")
 
 
 def db_rows_to_roles(rows) -> tuple[Role, ...]: