diff options
author | Rémy Coutable <remy@rymai.me> | 2016-11-03 14:04:41 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-04 14:42:19 +0300 |
commit | 5f1d3ec59ab5cbef568d80a8c03d212fadf4cda9 (patch) | |
tree | cdfefc4379f427da68f13413e0c6dbe57c856b64 /app/controllers | |
parent | 5ef2bd192aa9b3ecbfc23e83c6984e2a818fb736 (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>
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/group_links_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/group_links_controller.rb b/app/controllers/projects/group_links_controller.rb index ae060abee5c..9eaf26a0dbf 100644 --- a/app/controllers/projects/group_links_controller.rb +++ b/app/controllers/projects/group_links_controller.rb @@ -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 |