def has_board_access(board_id)
      board = nil
      if !board_id.nil?
        board = Unsakini::Board.find_by_id(board_id)
      else
        return {status: :bad_request}
      end
      if (board)
        user_board = Unsakini::UserBoard.where(user_id: @user.id, board_id: board_id).first
        return {status: :forbidden } if user_board.nil?
        return {status: :ok, board: board, user_board: user_board}
      else
        return {status: :not_found}
      end
    end
def has_board_access(board_id)
      board = nil
      if !board_id.nil?
        board = Unsakini::Board.find_by_id(board_id)
      else
        return {status: :bad_request}
      end
      if (board)
        user_board = Unsakini::UserBoard.where(user_id: @user.id, board_id: board_id).first
        return {status: :forbidden } if user_board.nil?
        return {status: :ok, board: board, user_board: user_board}
      else
        return {status: :not_found}
      end
    end
Validate if user has access to board

 @param board_id [Integer] board id