Fix bug where public station podcast feed would not display when logged out

This commit is contained in:
Duncan Sommerville 2015-11-04 15:57:51 -05:00
parent df467a24bf
commit 90ac2cc681
1 changed files with 3 additions and 3 deletions

View File

@ -7,9 +7,9 @@ class FeedsController extends Zend_Controller_Action
$this->view->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
if (!RestAuth::verifyAuth(true, true, $this)
&& (Application_Model_Preference::getStationPodcastPrivacy()
&& $this->getRequest()->getParam("sharing_token") != Application_Model_Preference::getStationPodcastDownloadKey())) {
if ((Application_Model_Preference::getStationPodcastPrivacy()
&& $this->getRequest()->getParam("sharing_token") != Application_Model_Preference::getStationPodcastDownloadKey())
&& !RestAuth::verifyAuth(true, true, $this)) {
$this->getResponse()
->setHttpResponseCode(401);
return;