Skip to content

Commit

Permalink
Admin should not have access if not MFA verified
Browse files Browse the repository at this point in the history
  • Loading branch information
michielbdejong committed Sep 27, 2023
1 parent 8761ff7 commit 21ed017
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Controller/MfazonesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function hasAccess($source)

try {
$node = $userRoot->get($source);
$hasAccess = $isAdmin || ($node->getOwner()->getUID() === $this->userId && $mfaVerified);
$hasAccess = ($isAdmin || $node->getOwner()->getUID() === $this->userId) && $mfaVerified;
} catch (\Exception $e) {
\OC::$server->getLogger()->logException($e, ['app' => 'mfazones']);
$hasAccess = false;
Expand Down

0 comments on commit 21ed017

Please sign in to comment.