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:
@@ -1,5 +1,5 @@
|
||||
{% macro avatar_image(user) %}
|
||||
{% 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') %}
|
||||
<span class="avatar" style="background-image:url({{ avatar }})" title="{{ user.displayName }}"> </span>
|
||||
{% else %}
|
||||
|
||||
Reference in New Issue
Block a user