summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfbin.py2
1 files changed, 1 insertions, 1 deletions
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: