Commit 5f1d3ec5 authored by Rémy Coutable's avatar Rémy Coutable

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

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 5ef2bd19
......@@ -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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment