POST requests should always require auth
This commit is contained in:
parent
595393f273
commit
e2d92c2ffb
|
@ -14,7 +14,7 @@ Travis.ajax = Em.Object.create
|
||||||
@ajax(url, 'post', data: data, success: callback)
|
@ajax(url, 'post', data: data, success: callback)
|
||||||
|
|
||||||
needsAuth: (method, url) ->
|
needsAuth: (method, url) ->
|
||||||
return false if method != 'GET'
|
return true if method != 'GET'
|
||||||
|
|
||||||
result = @publicEndpoints.find (pattern) ->
|
result = @publicEndpoints.find (pattern) ->
|
||||||
url.match(pattern)
|
url.match(pattern)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user