Commit b87c4eb7 authored by Sebastian Kummer's avatar Sebastian Kummer

ZP-1356 Apply strtolower() only when impersonation user is set.

Released under the Affero GNU General Public License (AGPL) version 3.
parent d2c9c018
...@@ -144,7 +144,9 @@ class BackendKopano implements IBackend, ISearchProvider { ...@@ -144,7 +144,9 @@ class BackendKopano implements IBackend, ISearchProvider {
$this->mainUser = strtolower($user); $this->mainUser = strtolower($user);
// TODO the impersonated user should be passed directly to IBackend->Logon() - ZP-1351 // TODO the impersonated user should be passed directly to IBackend->Logon() - ZP-1351
$this->impersonateUser = strtolower(Request::GetImpersonatedUser()); if (Request::GetImpersonatedUser()) {
$this->impersonateUser = strtolower(Request::GetImpersonatedUser());
}
// check if we are impersonating someone // check if we are impersonating someone
// $defaultUser will be used for $this->defaultStore // $defaultUser will be used for $this->defaultStore
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment