POST requests should always require auth

This commit is contained in:
Piotr Sarnacki 2013-05-02 19:56:48 +02:00
parent 595393f273
commit e2d92c2ffb

View File

@ -14,7 +14,7 @@ Travis.ajax = Em.Object.create
@ajax(url, 'post', data: data, success: callback)
needsAuth: (method, url) ->
return false if method != 'GET'
return true if method != 'GET'
result = @publicEndpoints.find (pattern) ->
url.match(pattern)