Skip to content

Commit

Permalink
fix: psalm error
Browse files Browse the repository at this point in the history
Signed-off-by: Elizabeth Danzberger <lizzy7128@tutanota.de>
  • Loading branch information
elzody authored and juliusknorr committed Apr 30, 2024
1 parent adf9405 commit b5b7e58
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/PermissionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,17 @@ private function userMatchesGroupList(?string $userId = null, ?array $groupList
}

public function loggedInUser(): ?string {
$incognito = \OC_User::isIncognitoMode();
$incognito = false;

if ($incognito) {
if (\OC_User::isIncognitoMode()) {
\OC_User::setIncognitoMode(false);
$incognito = false;
$incognito = true;
}

$user = $this->userSession->getUser();
$userId = $user?->getUID();

if (!$incognito) {
if ($incognito) {
\OC_User::setIncognitoMode(true);
}

Expand Down

0 comments on commit b5b7e58

Please sign in to comment.