diff --git a/CHANGELOG.md b/CHANGELOG.md index 4292b01a..7d1fadd3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ 1. [](#bugfix) * Regression: Fixed fatal error in admin if POST request has `data` in it [#2074](https://github.com/getgrav/grav-plugin-admin/issues/2074) * Fixed Admin creating empty `user/config/info.yaml` file (the file can be safely removed, it is not in use) + * Fixed ACL for users with mixed case usernames [#2073](https://github.com/getgrav/grav-plugin-admin/issues/2073) # v1.10.4 ## 02/17/2021 diff --git a/classes/plugin/Admin.php b/classes/plugin/Admin.php index eda72374..6a448c9d 100644 --- a/classes/plugin/Admin.php +++ b/classes/plugin/Admin.php @@ -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;