def ensure_board
      board_id = params[:board_id] || params[:id]
      result = has_board_access(board_id)
      @board = result[:board]
      @user_board = result[:user_board]
      head result[:status] if result[:status] != :ok
    end
def ensure_board
      board_id = params[:board_id] || params[:id]
      result = has_board_access(board_id)
      @board = result[:board]
      @user_board = result[:user_board]
      head result[:status] if result[:status] != :ok
    end
Ensure user has access to the board and sets the `@board` variable in the controller