#2514 Provide more friendly messages on validation failure

This commit is contained in:
Marek Wolan
2024-04-29 11:13:32 +01:00
parent 3c046b838b
commit 27d1cd460b
3 changed files with 28 additions and 1 deletions

View File

@@ -57,6 +57,11 @@ class GroupMembershipValidator(RequestPermissionValidator):
return True
return False
@property
def fail_message(self) -> str:
"""Message that is reported when a request is rejected by this validator."""
return "User does not belong to group"
class DomainController(SimComponent):
"""Main object for controlling the domain."""