mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-02 11:26:04 +01:00
Fixed ACL for users with mixed case usernames [#2073]
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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