diff --git a/internal/api/wechat/mini_template.go b/internal/api/wechat/mini_template.go index dc0b0f8..2605569 100644 --- a/internal/api/wechat/mini_template.go +++ b/internal/api/wechat/mini_template.go @@ -72,16 +72,6 @@ func (h *handler) GetTemplate() core.HandlerFunc { return } - // 检查是否有权限访问该小程序 - if ctx.SessionUserInfo().IsSuper != 1 && miniProgram.AdminID != ctx.SessionUserInfo().Id { - ctx.AbortWithError(core.Error( - http.StatusForbidden, - code.ServerError, - "无权限访问该小程序", - )) - return - } - // 检查模板ID是否存在 if miniProgram.TemplateID == "" { ctx.AbortWithError(core.Error(