From a4d8da7a1b6540652b3e0e1b4faa6c4d60b7b46c Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Tue, 3 Jun 2025 12:34:40 +0100 Subject: Make user_type extensible and allow default user_type to be set (#18456) --- synapse/api/constants.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'synapse/api/constants.py') diff --git a/synapse/api/constants.py b/synapse/api/constants.py index c564a8635a..1d0de60b2d 100644 --- a/synapse/api/constants.py +++ b/synapse/api/constants.py @@ -185,12 +185,18 @@ ServerNoticeLimitReached: Final = "m.server_notice.usage_limit_reached" class UserTypes: """Allows for user type specific behaviour. With the benefit of hindsight - 'admin' and 'guest' users should also be UserTypes. Normal users are type None + 'admin' and 'guest' users should also be UserTypes. Extra user types can be + added in the configuration. Normal users are type None or one of the extra + user types (if configured). """ SUPPORT: Final = "support" BOT: Final = "bot" - ALL_USER_TYPES: Final = (SUPPORT, BOT) + ALL_BUILTIN_USER_TYPES: Final = (SUPPORT, BOT) + """ + The user types that are built-in to Synapse. Extra user types can be + added in the configuration. + """ class RelationTypes: -- cgit 1.5.1