放开提取接口权限
This commit is contained in:
@@ -172,12 +172,7 @@ type ListChannelsReq struct {
|
|||||||
|
|
||||||
// CreateChannel 创建新通道
|
// CreateChannel 创建新通道
|
||||||
func CreateChannel(c *fiber.Ctx) error {
|
func CreateChannel(c *fiber.Ctx) error {
|
||||||
|
// 不检查权限,允许 api 调用
|
||||||
// 检查权限
|
|
||||||
_, err := auth.GetAuthCtx(c).PermitUser()
|
|
||||||
if err != nil {
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// 解析参数
|
// 解析参数
|
||||||
req := new(CreateChannelReq)
|
req := new(CreateChannelReq)
|
||||||
|
|||||||
Reference in New Issue
Block a user