Skip to content

Commit

Permalink
Fixed authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
kroman0 committed Feb 10, 2015
1 parent 13fad24 commit 98ba6b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openprocurement/api/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def check(self, user, group, request):
if not token:
token = request.headers.get('X-Access-Token')
if not token:
if request.method == 'POST' and request.content_type == 'application/json':
if request.method in ['POST', 'PUT', 'PATCH'] and request.content_type == 'application/json':
try:
json = request.json_body
except ValueError:
Expand Down

0 comments on commit 98ba6b7

Please sign in to comment.