Fixed You have been logged out message when entering to 2FA authentication due to /admin/task:getNotifications AJAX call [#2109]

This commit is contained in:
Matias Griese
2021-04-08 10:43:47 +03:00
parent 6ac77a6395
commit 6db7e4a637
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
# v1.10.11
## mm/dd/2021
1. [](#bugfix)
* Fixed `You have been logged out` message when entering to 2FA authentication due to `/admin/task:getNotifications` AJAX call [#2109](https://github.com/getgrav/grav-plugin-admin/issues/2109)
# v1.10.10
## 04/07/2021

View File

@@ -1,4 +1,4 @@
{% if authorize(['admin.login', 'admin.super']) %}
{% if user.authorized and authorize(['admin.login', 'admin.super']) %}
{% set notifications = (config.plugins.admin.widgets['dashboard-notifications'] or config.plugins.admin.notifications.dashboard or config.plugins.admin.notifications.plugins or config.plugins.admin.notifications.themes) ? 1 : 0 %}
{% switch template_route %}
{% case 'dashboard' %}