Commit d5789e17 authored by Marcelo Rivera's avatar Marcelo Rivera

(fix): remove return false; from User->isTrusted()

No related merge requests found
Pipeline #115980639 failed with stages
in 3 minutes and 15 seconds
......@@ -688,7 +688,6 @@ class User extends \ElggUser
*/
public function isTrusted(): bool
{
return false;
return
(!$this->getEmailConfirmationToken() && !$this->getEmailConfirmedAt()) || // Old users poly-fill
$this->isEmailConfirmed();
......
Please register or to comment