From ff3af2c1123e09c46be5283fdf1092db41a9f400 Mon Sep 17 00:00:00 2001 From: Matias Griese Date: Wed, 28 Aug 2019 08:59:58 +0300 Subject: [PATCH] Fixed config save with the new config url --- admin.php | 5 ++++- themes/grav/templates/partials/dashboard-pages.html.twig | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/admin.php b/admin.php index 807d10ae..ff89c51c 100644 --- a/admin.php +++ b/admin.php @@ -671,10 +671,13 @@ class AdminPlugin extends Plugin { $type = $e['type'] ?? null; switch ($type) { + case 'config': + $e['type'] = $this->admin->authorize(['admin.configuration_system','admin.super']) ? 'config/system' : 'config/site'; + break; case 'tools/scheduler': $e['type'] = 'config/scheduler'; break; - case 'tools': + case 'tools': case 'tools/backups': $e['type'] = 'config/backups'; break; diff --git a/themes/grav/templates/partials/dashboard-pages.html.twig b/themes/grav/templates/partials/dashboard-pages.html.twig index 2794cf78..0769b8b6 100644 --- a/themes/grav/templates/partials/dashboard-pages.html.twig +++ b/themes/grav/templates/partials/dashboard-pages.html.twig @@ -9,7 +9,7 @@ {% set route = latest.rawRoute %} - {{ latest.title|e }} + {{ latest.title }} {{ route }}{{ latest.modified|adminNicetime }} {% endfor %}