Skip to content
Prev Previous commit
Next Next commit
bugfix inside mfa check
  • Loading branch information
mrvahedi68 committed Nov 30, 2022
commit 8e7a3fc8411944e7cfb095a2ff4376af1bee3a2d
4 changes: 2 additions & 2 deletions apps/workflowengine/lib/Check/MfaVerified.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ public function __construct(IL10N $l, ISession $session) {
public function executeCheck($operator, $value) {
$mfaVerified = $this->session->get('user_saml.samlUserData')["mfa_verified"][0];
if (strtolower($value) == 'true') {
return $mfaVerified != '1'; //Mfa verified must not have access
return $mfaVerified == '1'; //Mfa verified must not have access
} else {
return $mfaVerified == '1';
return $mfaVerified != '1';
}
}

Expand Down