diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2017-04-09 11:45:38 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2017-04-09 11:45:38 +0200 |
commit | 8e44431e5b34c2e647c339f332cea32d44797951 (patch) | |
tree | f50812df92fce38edb3693dce087143505c6ce54 | |
parent | b36f9c05071ea549ed59e703270fcf223b60df03 (diff) |
Fixed renaming files.
-rwxr-xr-x | fbin/fbin.py | 3 |
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')) |