Fix offline_token http_status code
This commit is contained in:
parent
28ed990704
commit
bc32a3ecc7
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue