Commit cd122ac1 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

fix: options allowed for every requests

parent 0b630a1d
Pipeline #4929 passed with stage
in 1 minute and 21 seconds
......@@ -60,7 +60,7 @@ class LDPPermissions(BasePermission):
perms_map = {
'GET': ['%(app_label)s.view_%(model_name)s'],
'OPTIONS': ['%(app_label)s.view_%(model_name)s'],
'OPTIONS': [],
'HEAD': ['%(app_label)s.view_%(model_name)s'],
'POST': ['%(app_label)s.add_%(model_name)s'],
'PUT': ['%(app_label)s.change_%(model_name)s'],
......
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