mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-10-29 09:16:48 +01:00
ACL access updates
This commit is contained in:
6
UPGRADE.md
Normal file
6
UPGRADE.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
# Upgrading to Admin 1.10
|
||||||
|
|
||||||
|
Twig:
|
||||||
|
|
||||||
|
* **Admin link**: When linking to another admin page, use `{{ admin_route('/config/site') }}` instead of any other method, such as `{{ base_url_relative }}/config/site` (fixes multi-language issues)
|
||||||
|
|
||||||
@@ -869,7 +869,7 @@ class AdminController extends AdminBaseController
|
|||||||
*/
|
*/
|
||||||
protected function taskGpmRelease()
|
protected function taskGpmRelease()
|
||||||
{
|
{
|
||||||
if (!$this->authorizeTask('configuration', ['admin.configuration', 'admin.super'])) {
|
if (!$this->authorizeTask('configuration', ['admin.configuration.system', 'admin.super'])) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
title: Config
|
title: Config
|
||||||
|
|
||||||
access:
|
access:
|
||||||
admin.configuration: true
|
admin.configuration.system: true
|
||||||
|
admin.configuration.site: true
|
||||||
admin.super: true
|
admin.super: true
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
title: PHP Info
|
title: PHP Info
|
||||||
template: config
|
template: config
|
||||||
access:
|
access:
|
||||||
admin.settings: true
|
admin.configuration.info: true
|
||||||
admin.super: true
|
admin.super: true
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
title: Site Settings
|
title: Site Settings
|
||||||
template: config
|
template: config
|
||||||
access:
|
access:
|
||||||
admin.settings: true
|
admin.configuration.site: true
|
||||||
admin.super: true
|
admin.super: true
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
title: Configuration
|
title: Configuration
|
||||||
template: config
|
template: config
|
||||||
access:
|
access:
|
||||||
admin.configuration: true
|
admin.configuration.system: true
|
||||||
admin.super: true
|
admin.super: true
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user