protected function controlAccessAccount()
    {
        $account_id = $this->url->getAccountId();

        if ($account_id === false || $this->uid === $account_id) {
            return null;
        }

        if ($this->isSuperadmin($account_id) && !$this->isSuperadmin()) {
            $this->setHttpStatus(403);
            return null;
        }

        if (!$this->access('user')) {
            $this->setHttpStatus(403);
        }
    }
protected function controlAccessAccount()
    {
        $account_id = $this->url->getAccountId();

        if ($account_id === false || $this->uid === $account_id) {
            return null;
        }

        if ($this->isSuperadmin($account_id) && !$this->isSuperadmin()) {
            $this->setHttpStatus(403);
            return null;
        }

        if (!$this->access('user')) {
            $this->setHttpStatus(403);
        }
    }
protected function controlAccessAccount ( ) { $ account_id = $ this -> url -> getAccountId ( ) ; if ( $ account_id === false || $ this -> uid === $ account_id ) { return null ; } if ( $ this -> isSuperadmin ( $ account_id ) && ! $ this -> isSuperadmin ( ) ) { $ this -> setHttpStatus ( 403 ) ; return null ; } if ( ! $ this -> access ( 'user' ) ) { $ this -> setHttpStatus ( 403 ) ; } }
Controls access to account pages
Controls access to account pages