set the scope for /post_message to :public (@rkh: confim?)

This commit is contained in:
Sven Fuchs 2012-10-13 03:31:08 +02:00
parent 272c1275f4
commit 6e343099b4

View File

@ -112,7 +112,7 @@ class Travis::Api::App
# logged in at GitHub and already authorized Travis CI. It is therefore
# recommended to redirect to [/auth/handshake](#/auth/handshake) if no
# token is being received.
get '/post_message' do
get '/post_message', scope: :public do
handshake do |user, token, target_origin|
halt 403, invalid_target(target_origin) unless target_ok? target_origin
rendered_user = Travis::Api.data(user, version: :v2)