Allow users to remove themselves from a collection

This commit is contained in:
Andy Smith
2025-09-08 15:37:59 -05:00
parent cdc5caf193
commit 538bd67d72
+1 -1
View File
@@ -9,7 +9,7 @@
<%= icon_tag "check", class: "toggler__visible-when-on margin-inline-end" %>
<label class="switch toggler__visible-when-off flex-item-no-shrink">
<%= check_box_tag "user_ids[]", user.id, selected, class: "switch__input", id: nil, disabled: Current.user == user %>
<%= check_box_tag "user_ids[]", user.id, selected, class: "switch__input", id: nil %>
<span class="switch__btn round"></span>
<span class="for-screen-reader">Give <%= user.name %> access</span>
</label>