Skip to content
Snippets Groups Projects
Commit 687aa38c authored by Gunnar Schaefer's avatar Gunnar Schaefer
Browse files

add paths=true option to data container details

- close #12
parent 610110bb
No related branches found
No related tags found
No related merge requests found
......@@ -189,6 +189,9 @@ class Container(RequestHandler):
self.abort(403, self.uid + ' does not have at least ' + min_role + ' permissions on this ' + self.__class__.__name__)
if not user_perm['access'] != 'admin': # if not admin, mask permissions of other users
container['permissions'] = user_perm
if self.request.get('paths').lower() in ('1', 'true'):
for file_info in container['files']:
file_info['path'] = str(_id)[-3:] + '/' + str(_id) + '/' + file_info['name'] + file_info['ext']
return container
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment