From 9658bbf64a21baf484ece91ed2a6993a64346689 Mon Sep 17 00:00:00 2001 From: GoEdgeLab Date: Thu, 22 Jul 2021 08:25:14 +0800 Subject: [PATCH] =?UTF-8?q?Demo=E6=A8=A1=E5=BC=8F=E4=B8=8B=E4=B8=8D?= =?UTF-8?q?=E5=85=81=E8=AE=B8=E8=B0=83=E7=94=A8Sync=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/web/helpers/user_must_auth.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/web/helpers/user_must_auth.go b/internal/web/helpers/user_must_auth.go index faaa5cb6..dfdf85ba 100644 --- a/internal/web/helpers/user_must_auth.go +++ b/internal/web/helpers/user_must_auth.go @@ -34,7 +34,7 @@ func (this *userMustAuth) BeforeAction(actionPtr actions.ActionWrapper, paramNam if teaconst.IsDemoMode { if action.Request.Method == http.MethodPost { var actionName = action.Spec.ClassName[strings.LastIndex(action.Spec.ClassName, ".")+1:] - var denyPrefixes = []string{"Update", "Create", "Delete", "Truncate", "Clean", "Clear", "Reset", "Add", "Remove"} + var denyPrefixes = []string{"Update", "Create", "Delete", "Truncate", "Clean", "Clear", "Reset", "Add", "Remove", "Sync"} for _, prefix := range denyPrefixes { if strings.HasPrefix(actionName, prefix) { action.Fail(teaconst.ErrorDemoOperation)