X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/22896a010c864a979eca840829ddad80b40c6f62..4d179d12db7cad65f5dc866becda2c0c18bdc0a9:/Entity/User.php diff --git a/Entity/User.php b/Entity/User.php index 4eee930..809d363 100644 --- a/Entity/User.php +++ b/Entity/User.php @@ -454,23 +454,19 @@ class User implements UserInterface, PasswordAuthenticatedUserInterface { /** * Check if account is activated * - * It was from deprecated AdvancedUserInterface, see if it's used anymore - * - * @see vendor/symfony/security-core/User/AdvancedUserInterface.php + * @see vendor/rapsys/userbundle/Checker/UserChecker.php */ public function isActivated(): bool { return $this->active; } /** - * Check if account is disabled - * - * It was from deprecated AdvancedUserInterface, see if it's used anymore + * Check if account is enabled * - * @see vendor/symfony/security-core/User/AdvancedUserInterface.php + * @see vendor/symfony/security-core/User/InMemoryUserChecker.php */ - public function isDisabled(): bool { - return $this->disabled; + public function isEnabled(): bool { + return !$this->disabled; } /**