Skip to content

Commit

Permalink
Revert "Fix #14433 - "You do not have privileges to manipulate with t…
Browse files Browse the repository at this point in the history
…he users!" on root superadmin"

This reverts commit b865011.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
  • Loading branch information
MauricioFauth committed Dec 21, 2019
1 parent e69b22e commit 9d3f751
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions libraries/classes/DatabaseInterface.php
Expand Up @@ -2330,11 +2330,7 @@ public function getCurrentUserAndHost()
{
if (count($this->_current_user) == 0) {
$user = $this->getCurrentUser();
if ($user === '@') {// Request did not succeed, please do not cache
return ['', ''];
} else {
$this->_current_user = explode("@", $user);
}
$this->_current_user = explode("@", $user);
}
return $this->_current_user;
}
Expand Down

0 comments on commit 9d3f751

Please sign in to comment.