Disable ads on cheapest tier

This commit is contained in:
2020-10-27 10:32:28 +01:00
parent bc496c3998
commit e102c55667
4 changed files with 63 additions and 52 deletions

View File

@@ -107,7 +107,8 @@ func (wc *WebController) serveFileViewer(w http.ResponseWriter, r *http.Request,
}
showAds := true
if (templateData.Authenticated && templateData.User.Subscription.DisableAdDisplay) || finfo[0].ShowAds == false {
if finfo[0].ShowAds == false ||
(templateData.Authenticated && templateData.User.Subscription.DisableAdDisplay) {
showAds = false
}