提交 8e746daa 编写于 作者: D Douwe Maan

Return all authorized groups in API.

上级 2953e0d1
......@@ -31,6 +31,7 @@ v 7.10.0 (unreleased)
- Replace commits calendar with faster contribution calendar that includes issues and merge requests
- Add inifinite scroll to user page activity
- Don't show commit comment button when user is not signed in.
- Return all authorized groups in API.
v 7.9.0
- Send EmailsOnPush email when branch or tag is created or deleted.
......
......@@ -12,7 +12,7 @@ module API
@groups = if current_user.admin
Group.all
else
current_user.groups
current_user.authorized_groups
end
@groups = @groups.search(params[:search]) if params[:search].present?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册