Only show login link in navbar if visitor is guest

2022-03-24
Luca 3 years ago
parent 8dfabec920
commit 52e8c895cb

@ -39,7 +39,7 @@
{{ _self.toolbar_item(__('Register'), url('register'), 'register', 'plus') }}
{% endif %}
{% if has_permission_to('login') %}
{% if is_guest() and has_permission_to('login') %}
{{ _self.toolbar_item(__('login.login'), url('login'), 'login', 'box-arrow-in-right') }}
{% endif %}

Loading…
Cancel
Save