private function _logoutIfDisabledAccount()
    {
        if (! is_null($this->_viewer)) {
            if (! $this->_viewer->guest() && ! $this->_viewer->enabled) {
                $this->getService('com:people.helper.person')->logout();
                $this->getService('application.dispatcher')->getResponse()->setRedirect(route('index.php'));
            }
        }

        return;
    }
private function _logoutIfDisabledAccount()
    {
        if (! is_null($this->_viewer)) {
            if (! $this->_viewer->guest() && ! $this->_viewer->enabled) {
                $this->getService('com:people.helper.person')->logout();
                $this->getService('application.dispatcher')->getResponse()->setRedirect(route('index.php'));
            }
        }

        return;
    }
private function _logoutIfDisabledAccount ( ) { if ( ! is_null ( $ this -> _viewer ) ) { if ( ! $ this -> _viewer -> guest ( ) && ! $ this -> _viewer -> enabled ) { $ this -> getService ( 'com:people.helper.person' ) -> logout ( ) ; $ this -> getService ( 'application.dispatcher' ) -> getResponse ( ) -> setRedirect ( route ( 'index.php' ) ) ; } } return ; }
Logout a user with disabled account

@return void
Logout a user with disabled account