Skip to content

Commit

Permalink
Fix admin access check
Browse files Browse the repository at this point in the history
  • Loading branch information
NicoHood authored Dec 9, 2020
1 parent d6fb630 commit 48b203c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/forms/fields/section/section.html.twig
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "forms/field.html.twig" %}
{% set title_level = grav.user.access.admin.login ? 'h1' : field.title_level|default('h3') %}
{% set title_level = grav['admin'] is defined ? 'h1' : field.title_level|default('h3') %}

{% block field %}
{% if field.security is empty or authorize(array(field.security)) %}
Expand Down

0 comments on commit 48b203c

Please sign in to comment.