Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
5f1d3ec5
Commit
5f1d3ec5
authored
Nov 03, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Only skip group when it's actually a group in the "Share with group" select
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
5ef2bd19
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
app/controllers/projects/group_links_controller.rb
app/controllers/projects/group_links_controller.rb
+1
-1
changelogs/unreleased/23961-can-t-share-project-with-groups.yml
...logs/unreleased/23961-can-t-share-project-with-groups.yml
+4
-0
No files found.
app/controllers/projects/group_links_controller.rb
View file @
5f1d3ec5
...
@@ -7,7 +7,7 @@ class Projects::GroupLinksController < Projects::ApplicationController
...
@@ -7,7 +7,7 @@ class Projects::GroupLinksController < Projects::ApplicationController
@group_links
=
project
.
project_group_links
.
all
@group_links
=
project
.
project_group_links
.
all
@skip_groups
=
@group_links
.
pluck
(
:group_id
)
@skip_groups
=
@group_links
.
pluck
(
:group_id
)
@skip_groups
<<
project
.
group
.
try
(
:id
)
@skip_groups
<<
project
.
namespace_id
unless
project
.
personal?
end
end
def
create
def
create
...
...
changelogs/unreleased/23961-can-t-share-project-with-groups.yml
0 → 100644
View file @
5f1d3ec5
---
title
:
Only skip group when it's actually a group in the "Share with group" select
merge_request
:
7262
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment