mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Use $grav['accounts'] instead of $grav['users']
This commit is contained in:
@@ -300,7 +300,7 @@ class AdminPlugin extends Plugin
|
||||
$data['access'] = ['admin' => ['login' => true, 'super' => true], 'site' => ['login' => true]];
|
||||
|
||||
/** @var UserCollectionInterface $users */
|
||||
$users = $this->grav['users'];
|
||||
$users = $this->grav['accounts'];
|
||||
|
||||
// Create user object and save it
|
||||
$user = $users->load($username);
|
||||
|
||||
Reference in New Issue
Block a user