create draupnir bot user with type = admin when matrix_bot_draupnir_admin_api_enabled = true

This commit is contained in:
Aine
2025-08-13 11:57:56 +01:00
parent eef4036c6e
commit 72d082d6f5

View File

@@ -6099,7 +6099,7 @@ matrix_user_creator_users_auto: |
([{ ([{
'username': matrix_bot_draupnir_login, 'username': matrix_bot_draupnir_login,
'initial_password': matrix_bot_draupnir_password, 'initial_password': matrix_bot_draupnir_password,
'initial_type': 'bot', 'initial_type': ('admin' if matrix_bot_draupnir_admin_api_enabled else 'bot'),
}] if matrix_bot_draupnir_enabled and matrix_bot_draupnir_password else []) }] if matrix_bot_draupnir_enabled and matrix_bot_draupnir_password else [])
}} }}