mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 03:16:11 +01:00
Fixed user login / remember me triggering before admin gets initialized
This commit is contained in:
@@ -649,13 +649,9 @@ class AdminPlugin extends Plugin
|
||||
$this->route = array_shift($array);
|
||||
}
|
||||
|
||||
// Initialize admin class.
|
||||
// Initialize admin class (also registers it to Grav services).
|
||||
$this->admin = new Admin($this->grav, $this->admin_route, $this->template, $this->route);
|
||||
|
||||
|
||||
// And store the class into DI container.
|
||||
$this->grav['admin'] = $this->admin;
|
||||
|
||||
// Double check we have system.yaml, site.yaml etc
|
||||
$config_path = $this->grav['locator']->findResource('user://config');
|
||||
foreach ($this->admin->configurations() as $config_file) {
|
||||
|
||||
Reference in New Issue
Block a user