summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorHugh Nimmo-Smith <hughns@users.noreply.github.com>2025-06-03 12:34:40 +0100
committerGitHub <noreply@github.com>2025-06-03 11:34:40 +0000
commita4d8da7a1b6540652b3e0e1b4faa6c4d60b7b46c (patch)
treeb1f9ab3243500192bce614370a5d316195029f46 /synapse/api/constants.py
parentMachine-readable config description (#17892) (diff)
downloadsynapse-a4d8da7a1b6540652b3e0e1b4faa6c4d60b7b46c.tar.xz
Make user_type extensible and allow default user_type to be set (#18456)
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py10
1 files changed, 8 insertions, 2 deletions
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: