mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Cleanup
This commit is contained in:
@@ -715,7 +715,7 @@ class AdminPlugin extends Plugin
|
||||
$type = $e['type'] ?? null;
|
||||
switch ($type) {
|
||||
case 'config':
|
||||
$e['type'] = $this->admin->authorize(['admin.configuration.system','admin.configuration_system','admin.super']) ? 'config/system' : 'config/site';
|
||||
$e['type'] = $this->admin->authorize(['admin.configuration.system', 'admin.super']) ? 'config/system' : 'config/site';
|
||||
break;
|
||||
case 'tools/scheduler':
|
||||
$e['type'] = 'config/scheduler';
|
||||
@@ -772,7 +772,10 @@ class AdminPlugin extends Plugin
|
||||
$this->grav['twig']->plugins_hooked_nav['PLUGIN_ADMIN.CONFIGURATION'] = [
|
||||
'route' => 'config',
|
||||
'icon' => 'fa-wrench',
|
||||
'authorize' => ['admin.configuration.system', 'admin.configuration_system', 'admin.super'],
|
||||
'authorize' => [
|
||||
'admin.configuration.system',
|
||||
'admin.configuration.site',
|
||||
'admin.super'],
|
||||
'priority' => 9
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user