From d5c381e2fc642f94b12f419a2e8d856ce814076e Mon Sep 17 00:00:00 2001 From: Ferry Boender Date: Wed, 27 May 2015 18:05:12 +0200 Subject: [PATCH] Make authorization required for serving static files is 'users' param is in configuration. --- src/scriptform.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/scriptform.py b/src/scriptform.py index caff2a7..c434d30 100755 --- a/src/scriptform.py +++ b/src/scriptform.py @@ -1014,6 +1014,9 @@ class ScriptFormWebApp(WebAppHandler): def h_static(self, fname): """Serve static files""" + if not self.auth(): + return + form_config = self.scriptform.get_form_config() if not form_config.static_dir: