summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xfbin/fbin.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/fbin/fbin.py b/fbin/fbin.py
index 42c371f..708243e 100755
--- a/fbin/fbin.py
+++ b/fbin/fbin.py
@@ -276,7 +276,8 @@ def files():
@app.route('/files', methods = ['POST'])
@login_required
def file_edit():
- f = get_file(request.form.get('hash'), user_id = current_user.get_id(), update_accessed = False)
+ user_id = int(current_user.get_id().split(':')[0])
+ f = get_file(request.form.get('hash'), user_id = user_id, update_accessed = False)
if not f:
flash('File not found.', 'error')
return redirect(url_for('.files'))