Skip to content
代码片段 群组 项目
提交 23d1c454 编辑于 作者: Kamil Trzciński's avatar Kamil Trzciński
浏览文件

Fix 401 message

上级 e3e39296
No related branches found
No related tags found
无相关合并请求
...@@ -6,7 +6,7 @@ def execute ...@@ -6,7 +6,7 @@ def execute
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('unauthorized', 401) unless current_user
else else
return error('forbidden', 403) unless scope return error('forbidden', 403) unless scope
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册