提交 a3cc2f1e 编写于 作者: R Robert Speicher

Merge branch '23961-can-t-share-project-with-groups' into 'master'

Only skip group when it's actually a group in the "Share with group" select

Fixes #23961

See merge request !7262
......@@ -7,7 +7,7 @@ class Projects::GroupLinksController < Projects::ApplicationController
@group_links = project.project_group_links.all
@skip_groups = @group_links.pluck(:group_id)
@skip_groups << project.group.try(:id)
@skip_groups << project.namespace_id unless project.personal?
end
def create
......
---
title: Only skip group when it's actually a group in the "Share with group" select
merge_request: 7262
author:
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册