Merge pull request #11 from radiorabe/feature/disable-billing

Problem: Billing is always on
This commit is contained in:
Lucas Bickel 2017-03-04 16:10:50 +01:00 committed by GitHub
commit 7c86991c50
11 changed files with 176 additions and 164 deletions

View file

@ -1573,7 +1573,7 @@ class Application_Model_Preference
* @return int either 0 (public) or 1 (private)
*/
public static function getStationPodcastPrivacy() {
if (!Billing::isStationPodcastAllowed()) {
if (LIBRETIME_ENABLE_BILLING === true && !Billing::isStationPodcastAllowed()) {
// return private setting
return 1;
}