Commit 05674041 authored by Pablo Panero's avatar Pablo Panero
Browse files

Refactor: PEP8 Styling fixes and jsonschemas folder hierarchy changes to match index names

parent ecf34af7
......@@ -83,8 +83,8 @@ Lets assume the following JSON schema and Elasticsearch mapping for our demo doc
```json
{
"title": "Custom record schema v0.0.1",
"id": "http://<host:port>/schemas/cernsearch-test/test-doc_v0.0.1.json",
"$schema": "http://<host:port>/schemas/cernsearch-test/test-doc_v0.0.1.json",
"id": "http://<host:port>/schemas/cernsearch-test/doc_v0.0.1.json",
"$schema": "http://<host:port>/schemas/cernsearch-test/doc_v0.0.1.json",
"type": "object",
"properties": {
"_access": {
......@@ -187,14 +187,14 @@ curl -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' \
-i 'http://<host:port>/api/records/' --data '
{
"_access": {
"delete": ["test-egroup@cern.ch"],
"delete": ["test-egroup@cern.ch"],
"owner": ["test-egroup@cern.ch"],
"read": ["test-egroup@cern.ch", "test-egroup-two@cern.ch"],
"read": ["test-egroup@cern.ch", "test-egroup-two@cern.ch"],
"update": ["test-egroup@cern.ch"]
},
"description": "This is an awesome description for our first uploaded document",
"title": "Demo document"
"$schema": "http://0.0.0.0/schemas/test-doc_v0.0.1.json"
"$schema": "http://0.0.0.0/schemas/cernsearch-test/doc_v0.0.1.json"
}
'
```
......
......@@ -111,7 +111,6 @@ def has_list_permission(user, record=None):
return user.is_authenticated
def has_update_permission(user, record):
"""Check if user is authenticated and has update access"""
if user.is_authenticated:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment