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

set curator perm on collection creation

parent 587424de
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,7 @@ class Collections(containers.ContainerList):
self.abort(400, str(e))
json_body['curator'] = self.uid
json_body['timestamp'] = datetime.datetime.utcnow()
json_body['permissions'] = [{'_id': self.uid, 'access': 'admin'}]
return {'_id': str(self.dbc.insert(json_body))}
def get(self):
......
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