mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-03 03:46:30 +01:00
Fixed ACL for users with mixed case usernames [#2073]
This commit is contained in:
@@ -4,6 +4,7 @@
|
|||||||
1. [](#bugfix)
|
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)
|
* 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 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
|
# v1.10.4
|
||||||
## 02/17/2021
|
## 02/17/2021
|
||||||
|
|||||||
@@ -153,7 +153,7 @@ class Admin
|
|||||||
$directory = $managed ? $flex->getDirectory('user-accounts') : null;
|
$directory = $managed ? $flex->getDirectory('user-accounts') : null;
|
||||||
|
|
||||||
/** @var UserObject|null $test */
|
/** @var UserObject|null $test */
|
||||||
$test = $directory ? $directory->getObject($user->username) : null;
|
$test = $directory ? $directory->getObject(mb_strtolower($user->username)) : null;
|
||||||
if ($test) {
|
if ($test) {
|
||||||
$test = clone $test;
|
$test = clone $test;
|
||||||
$test->access = $user->access;
|
$test->access = $user->access;
|
||||||
|
|||||||
Reference in New Issue
Block a user