From 6fe79f8a02a3226a02b3909b4d7354778f9dcf6f Mon Sep 17 00:00:00 2001 From: Jon Bergli Heier Date: Tue, 1 Oct 2013 23:00:53 +0200 Subject: Fixed uploading when anonymous uploads are disabled while logged in. --- fbin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fbin.py b/fbin.py index e6a2b3f..4b7f2a7 100755 --- a/fbin.py +++ b/fbin.py @@ -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: -- cgit v1.2.3