Only skip group when it's actually a group in the "Share with group" select
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
5ef2bd192a
commit
5f1d3ec59a
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
---
|
||||
title: Only skip group when it's actually a group in the "Share with group" select
|
||||
merge_request: 7262
|
||||
author:
|
Loading…
Reference in a new issue