Fix offline_token http_status code

This commit is contained in:
Kamil Trzcinski 2016-05-15 10:47:38 -05:00
parent 28ed990704
commit bc32a3ecc7

View file

@ -6,7 +6,7 @@ module Auth
return error('not found', 404) unless registry.enabled return error('not found', 404) unless registry.enabled
if params[:offline_token] if params[:offline_token]
return error('forbidden', 401) unless current_user return error('forbidden', 403) unless current_user
else else
return error('forbidden', 403) unless scope return error('forbidden', 403) unless scope
end end