diff options
-rwxr-xr-x | fbin.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -269,7 +269,7 @@ class Application(object): if environ['REQUEST_METHOD'] != 'POST' or not 'file' in form or not 'filename' in form: if 'file' in form: form['file'].file.delete = True - if settings.allow_anonymous_uploads: + if user or settings.allow_anonymous_uploads: start_response('200 OK', [('Content-Type', 'text/html')]) return str(templates.upload(searchList = {'settings': settings, 'user': user})) else: |