Restrict podcast hosting for some plans. Fixed error page colours.

This commit is contained in:
Albert Santoni 2015-11-17 17:34:13 -05:00
parent ef1a57459c
commit c5d9dfd93d
8 changed files with 134 additions and 3 deletions

View file

@ -446,6 +446,12 @@ class LibraryController extends Zend_Controller_Action
public function publishDialogAction() {
$this->_helper->layout->disableLayout();
if (!Billing::isStationPodcastAllowed()) {
$this->renderScript("podcast/featureupgrade-pane.phtml");
}
//This just spits out publish-dialog.phtml!
}
}

View file

@ -26,6 +26,12 @@ class PodcastController extends Zend_Controller_Action {
* Renders the Station podcast view
*/
public function stationAction() {
if (!Billing::isStationPodcastAllowed()) {
$this->render("featureupgrade-page");
return;
}
$stationPodcastId = Application_Model_Preference::getStationPodcastId();
$podcast = Application_Service_PodcastService::getPodcastById($stationPodcastId);
$this->view->podcast = json_encode($podcast);