set the scope for /post_message to :public (@rkh: confim?)
This commit is contained in:
parent
272c1275f4
commit
6e343099b4
|
@ -112,7 +112,7 @@ class Travis::Api::App
|
||||||
# logged in at GitHub and already authorized Travis CI. It is therefore
|
# logged in at GitHub and already authorized Travis CI. It is therefore
|
||||||
# recommended to redirect to [/auth/handshake](#/auth/handshake) if no
|
# recommended to redirect to [/auth/handshake](#/auth/handshake) if no
|
||||||
# token is being received.
|
# token is being received.
|
||||||
get '/post_message' do
|
get '/post_message', scope: :public do
|
||||||
handshake do |user, token, target_origin|
|
handshake do |user, token, target_origin|
|
||||||
halt 403, invalid_target(target_origin) unless target_ok? target_origin
|
halt 403, invalid_target(target_origin) unless target_ok? target_origin
|
||||||
rendered_user = Travis::Api.data(user, version: :v2)
|
rendered_user = Travis::Api.data(user, version: :v2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user