mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-01 19:06:16 +01:00
Fixed ACL for users with mixed case usernames [#2073]
This commit is contained in:
@@ -153,7 +153,7 @@ class Admin
|
||||
$directory = $managed ? $flex->getDirectory('user-accounts') : null;
|
||||
|
||||
/** @var UserObject|null $test */
|
||||
$test = $directory ? $directory->getObject($user->username) : null;
|
||||
$test = $directory ? $directory->getObject(mb_strtolower($user->username)) : null;
|
||||
if ($test) {
|
||||
$test = clone $test;
|
||||
$test->access = $user->access;
|
||||
|
||||
Reference in New Issue
Block a user