Commit bc32a3ec authored by Kamil Trzcinski's avatar Kamil Trzcinski

Fix offline_token http_status code

parent 28ed9907
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment