diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2013-10-01 23:00:53 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2013-10-01 23:00:53 +0200 |
commit | 6fe79f8a02a3226a02b3909b4d7354778f9dcf6f (patch) | |
tree | 1db388661cdcef4fb8e5b3139fc68d2cecf50028 | |
parent | 589c7c49d896aa73558d94bc233d6f65527ecb11 (diff) |
Fixed uploading when anonymous uploads are disabled while logged in.
-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: |