public function isEnabled($id = false)
    {
        $user = $id ? $this->getUser($id) : $this->getCurrentUser();

        return (bool) $user['enabled'];
    }
public function isEnabled($id = false)
    {
        $user = $id ? $this->getUser($id) : $this->getCurrentUser();

        return (bool) $user['enabled'];
    }
public function isEnabled ( $ id = false ) { $ user = $ id ? $ this -> getUser ( $ id ) : $ this -> getCurrentUser ( ) ; return ( bool ) $ user [ 'enabled' ] ; }
Check a user's enable status.

@param int|bool $id User ID, or false for current user

@return bool
Check a user s enable status .