1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-09 02:42:47 +00:00

Merge pull request #1882 from haiwen/update-file

use use_onetime=False when get update link
This commit is contained in:
Daniel Pan
2017-10-31 13:28:01 +08:00
committed by GitHub

View File

@@ -1410,7 +1410,7 @@ class UpdateLinkView(APIView):
return api_error(HTTP_443_ABOVE_QUOTA, 'Above quota')
token = seafile_api.get_fileserver_access_token(repo_id,
'dummy', 'update', request.user.username)
'dummy', 'update', request.user.username, use_onetime=False)
if not token:
error_msg = 'Internal Server Error'