protected function _authorizeAccess($context)
    {
        if (is_person($this->_viewer) && $this->_viewer->admin()) {
            return true;
        }

        if ($this->_entity->isPrivatable()) {
            return $this->_entity->allows($this->_viewer, 'access');
        }
    }
protected function _authorizeAccess($context)
    {
        if (is_person($this->_viewer) && $this->_viewer->admin()) {
            return true;
        }

        if ($this->_entity->isPrivatable()) {
            return $this->_entity->allows($this->_viewer, 'access');
        }
    }
protected function _authorizeAccess ( $ context ) { if ( is_person ( $ this -> _viewer ) && $ this -> _viewer -> admin ( ) ) { return true ; } if ( $ this -> _entity -> isPrivatable ( ) ) { return $ this -> _entity -> allows ( $ this -> _viewer , 'access' ) ; } }
Check if a medium authorizes acccess.

@param AnCommandContext $context Context parameter

@return bool
Check if a medium authorizes acccess .