]> git.ipfire.org Git - ipfire.org.git/commitdiff
donation: Check blacklist before allowing to access page
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Nov 2018 11:30:40 +0000 (11:30 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 18 Nov 2018 11:31:03 +0000 (11:31 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/web/donate.py

index 98c426a683f1b173f2bd3d3501f83d782e656b7d..0da907097142e9a221e434ad23f990d3766699fd 100644 (file)
@@ -7,6 +7,11 @@ import tornado.web
 from . import base
 
 class DonateHandler(base.BaseHandler):
+       @base.blacklisted
+       def prepare(self):
+               # Makes sure that we call blacklist for everything
+               pass
+
        def get(self):
                location = self.get_remote_location()