Skip to content

[BUG] 在放入一般使用者的 Access Token 的情況下 GET /v1/boards/bm_only/articles 不應該出現文章列表 #245

@titaneric

Description

@titaneric

發生了什麼事? / The Problem

在放入一般使用者的 Access Token 的情況下 GET /v1/boards/bm_only/articles 不應該出現文章列表,因為這是版主以上才能看到的版,應該出現 error。但是卻回傳文章列表。

如何重現 / To Reproduce

  1. curl http://localhost:8081/v1/boards/bm_only/articles
  2. 回傳文章列表

預期的行為 / Expected behavior

螢幕截圖 / Screenshots

image
要回傳錯誤,因為沒有bm_only的Access Token

開發環境 / Environment

  1. OS: Windows 10 and WSL 2 Ubuntu 20.04
  2. Go version v1.16.5

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions