Remove Repository's team from sharring list

This commit is contained in:
Urban Rotnik 2019-08-09 11:34:50 +02:00
parent 32783576c1
commit 23d7d117e9

View file

@ -14,7 +14,7 @@
<tr>
<th>Share with Team</th><th>Can Edit</th>
</tr>
<% current_user.teams.each do |t| %>
<% (current_user.teams - [@repository.team]).each do |t| %>
<tr>
<td>
<%= check_box_tag 'share_team_ids[]', t.id, @repository.shared_with?(t), {id: "shared_#{t.id}"} %>