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
if params[:offline_token]
return error('forbidden', 401) unless current_user
return error('forbidden', 403) unless current_user
else
return error('forbidden', 403) unless scope
end