public function hasAccess(User $user, Application $app)
    {
        if ($this->getCollection($app) instanceof collection) {
            return $app->getAclForUser($user)->has_access_to_base($this->collection->get_base_id());
        }

        return true;
    }
public function hasAccess(User $user, Application $app)
    {
        if ($this->getCollection($app) instanceof collection) {
            return $app->getAclForUser($user)->has_access_to_base($this->collection->get_base_id());
        }

        return true;
    }
public function hasAccess ( User $ user , Application $ app ) { if ( $ this -> getCollection ( $ app ) instanceof collection ) { return $ app -> getAclForUser ( $ user ) -> has_access_to_base ( $ this -> collection -> get_base_id ( ) ) ; } return true ; }
Returns a boolean indicating whether the given user has access to the feed.

@param User        $user
@param Application $app

@return boolean
Returns a boolean indicating whether the given user has access to the feed .