summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Bergli Heier <snakebite@jvnv.net>2013-10-01 23:00:53 +0200
committerJon Bergli Heier <snakebite@jvnv.net>2013-10-01 23:00:53 +0200
commit6fe79f8a02a3226a02b3909b4d7354778f9dcf6f (patch)
tree1db388661cdcef4fb8e5b3139fc68d2cecf50028
parent589c7c49d896aa73558d94bc233d6f65527ecb11 (diff)
Fixed uploading when anonymous uploads are disabled while logged in.
-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: