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}"} %>