diff --git a/res/template/file_viewer.html b/res/template/file_viewer.html
index 8a5d0cb..32134bf 100644
--- a/res/template/file_viewer.html
+++ b/res/template/file_viewer.html
@@ -71,7 +71,7 @@
- {{if .Other.ShowAds}}
+ {{ if and .Other.FileAdsEnabled .Other.UserAdsEnabled }}