From 90ac2cc681c51f5270364208abdbb041285d0c3c Mon Sep 17 00:00:00 2001 From: Duncan Sommerville Date: Wed, 4 Nov 2015 15:57:51 -0500 Subject: [PATCH] Fix bug where public station podcast feed would not display when logged out --- airtime_mvc/application/controllers/FeedsController.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/controllers/FeedsController.php b/airtime_mvc/application/controllers/FeedsController.php index 939703274..6212d0a7f 100644 --- a/airtime_mvc/application/controllers/FeedsController.php +++ b/airtime_mvc/application/controllers/FeedsController.php @@ -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;