From 964a4f8ea39900ea2af0cfd875de19391506a1eb Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Tue, 3 Jan 2017 10:58:24 +0100 Subject: [PATCH] Fixed saving the configuration if not `admin.super` --- CHANGELOG.md | 2 ++ classes/adminbasecontroller.php | 1 + 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b7a40766..0fb5cc94 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ 1. [](#improved) * Allow to clear the cache if admin.maintenance, as stated in the docs [#908](https://github.com/getgrav/grav-plugin-admin/issues/908) * Added lang strings for `DEFAULT_LANG` in Site configuration +1. [](#bugfix) + * Fixed saving the configuration if not `admin.super` # v1.2.7 ## 12/22/2016 diff --git a/classes/adminbasecontroller.php b/classes/adminbasecontroller.php index deea2244..0bf63a6b 100644 --- a/classes/adminbasecontroller.php +++ b/classes/adminbasecontroller.php @@ -420,6 +420,7 @@ class AdminBaseController switch ($type) { case 'configuration': + case 'config': case 'system': $permissions[] = 'admin.configuration'; break;