mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-04-14 08:37:36 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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' %}
|
||||
|
||||
Reference in New Issue
Block a user