Merge branch 'saas-dev-publishing' into saas-dev-publishing-episode-view

This commit is contained in:
Duncan Sommerville 2015-11-04 15:58:11 -05:00
commit a984cee13a
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;