From 23d7d117e9e5e075aeafb066fae2a7eff2548788 Mon Sep 17 00:00:00 2001 From: Urban Rotnik Date: Fri, 9 Aug 2019 11:34:50 +0200 Subject: [PATCH] Remove Repository's team from sharring list --- app/views/repositories/_share_repository_modal.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/repositories/_share_repository_modal.html.erb b/app/views/repositories/_share_repository_modal.html.erb index 8f5810e1d..5bcef0c54 100644 --- a/app/views/repositories/_share_repository_modal.html.erb +++ b/app/views/repositories/_share_repository_modal.html.erb @@ -14,7 +14,7 @@ Share with TeamCan Edit - <% current_user.teams.each do |t| %> + <% (current_user.teams - [@repository.team]).each do |t| %> <%= check_box_tag 'share_team_ids[]', t.id, @repository.shared_with?(t), {id: "shared_#{t.id}"} %>