Skip to content
Snippets Groups Projects
Commit 32074999 authored by Ambrus Simon's avatar Ambrus Simon Committed by GitHub
Browse files

Merge pull request #743 from scitran/fix-uid-match-upload-bug

add roles & permissions to session projection to enable has_access
parents b2d362fc 69598a16
No related branches found
No related tags found
No related merge requests found
......@@ -433,7 +433,7 @@ def find_existing_hierarchy(metadata, user=None, site=None):
raise APIStorageException(str(e))
# Confirm session and acquisition exist
session_obj = config.db.sessions.find_one({'uid': session_uid}, ['project'])
session_obj = config.db.sessions.find_one({'uid': session_uid}, ['project', 'roles', 'permissions'])
if session_obj is None:
raise APINotFoundException('Session with uid {} does not exist'.format(session_uid))
......
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