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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue