create draupnir bot user with type = admin when matrix_bot_draupnir_admin_api_enabled = true
Some checks failed
Lock Threads / action (push) Has been cancelled
Matrix CI / yamllint (push) Has been cancelled
Matrix CI / ansible-lint (push) Has been cancelled
Matrix CI / Run pre-commit (push) Has been cancelled

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,
'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 [])
}}