Constrain user queries to the current or relevant account

This commit is contained in:
Mike Dalessio
2025-11-10 17:17:03 -05:00
parent 93b2cef419
commit dbf66f9a50
19 changed files with 34 additions and 16 deletions
+1 -1
View File
@@ -86,7 +86,7 @@ class BoardsControllerTest < ActionDispatch::IntegrationTest
assert_redirected_to edit_board_path(board)
assert board.reload.all_access?
assert_equal User.active.sort, board.users.sort
assert_equal accounts("37s").users.active.sort, board.users.sort
end
test "destroy" do
@@ -9,5 +9,6 @@ class Prompts::Boards::UsersControllerTest < ActionDispatch::IntegrationTest
test "index" do
get prompts_board_users_path(@board)
assert_response :success
assert_select "lexxy-prompt-item", count: 3
end
end