Twig config improvements (#5923)

* deprecate direct kimai_config access, which was only used internally
* prevent access to system configs
* prevent access to most configs in sandbox environments
This commit is contained in:
Kevin Papst
2026-04-25 20:13:33 +02:00
committed by GitHub
parent 3eebb02ad3
commit 3b051e4aa5
11 changed files with 242 additions and 43 deletions

View File

@@ -122,7 +122,7 @@
{% macro user_avatar(user, tooltip, class, badge) %}
{% set avatar = null %}
{% if user.avatar is not empty and kimai_config.themeAllowAvatarUrls %}
{% if user.avatar is not empty and config('themeAllowAvatarUrls') %}
{% set avatar = asset(user.avatar, 'avatars') %}
{% endif %}
{% if not user.enabled %}