From e4b25055d5b74809e9e8e77497bc2c9ca62f6bea Mon Sep 17 00:00:00 2001 From: Yang Luo Date: Wed, 6 Mar 2024 02:17:28 +0800 Subject: [PATCH] Improve isAllowedInDemoMode() --- authz/authz.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/authz/authz.go b/authz/authz.go index d9436045..70174d61 100644 --- a/authz/authz.go +++ b/authz/authz.go @@ -161,6 +161,11 @@ func isAllowedInDemoMode(subOwner string, subName string, method string, urlPath return true } return false + } else if urlPath == "/api/upload-resource" { + if subOwner == "app" && subName == "app-casibase" { + return true + } + return false } else { return false }