mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-15 09:46:06 +01:00
Fix #557 enable_auto_updates_check disabled if not admin.maintenance or admin.super
This commit is contained in:
@@ -5,7 +5,9 @@
|
||||
base_url_relative: '{{ base_url_relative }}',
|
||||
route: '{{ admin.route|trim('/') }}',
|
||||
param_sep: '{{ config.system.param_sep }}',
|
||||
{% if authorize(['admin.maintenance', 'admin.super']) %}
|
||||
enable_auto_updates_check: '{{ config.plugins.admin.enable_auto_updates_check }}',
|
||||
{% endif %}
|
||||
admin_timeout: '{{ config.plugins.admin.session.timeout ?: 1800 }}',
|
||||
admin_nonce: '{{ admin.getNonce }}',
|
||||
language: '{{ grav.user.language|default('en') }}',
|
||||
|
||||
Reference in New Issue
Block a user