mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-02-19 13:07:51 +01:00
Fixed config save with the new config url
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user