Fixed ACL for users with mixed case usernames [#2073]

This commit is contained in:
Matias Griese
2021-02-18 16:22:55 +02:00
parent b4d70ecd30
commit 7832d6992e
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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;