flees manager list shares and folders

This commit is contained in:
2018-01-26 12:41:29 +02:00
parent 6c67f54d8d
commit bfaa3467cb
3 changed files with 58 additions and 4 deletions

View File

@@ -134,6 +134,9 @@ def download_direct(name,password,filename):
(ok,share) = get_share(name, require_auth = False)
if not ok:
return share
allow_direct = get_or_none(share,'direct_links')
if allow_direct != True:
return 'Direct download not allowed', 403
token = get_direct_token(share, filename)
if token == None:
return 'Cannot generate token', 400