-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: access the list interface without logging in #81
fix: access the list interface without logging in #81
Conversation
82d8b3d
to
3e40679
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: guqing, ruibaby The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind bug
What this PR does / why we need it:
根据 自定义 API 的规则,当 group 为
api.<group>
时,此接口默认为为主题端公开的接口。而 moment 在初始定义时,使用了api.plugin.halo.run
作为 group,因此导致其能被公开访问。本 pr 将 moment 自定义的接口组由
api.plugin.halo.run
改为console.api.moment.halo.run
,用于解决用户未登录便可访问瞬间列表的问题。How to test it?
未登录状态下,直接访问接口
/apis/console.api.moment.halo.run/v1alpha1/moments
。 查看是否提示无权限。Which issue(s) this PR fixes:
Fixes #71
Does this PR introduce a user-facing change?