Improve isAllowedInDemoMode()

This commit is contained in:
Yang Luo 2024-03-06 02:17:28 +08:00
parent 4123d47174
commit e4b25055d5

View File

@ -161,6 +161,11 @@ func isAllowedInDemoMode(subOwner string, subName string, method string, urlPath
return true return true
} }
return false return false
} else if urlPath == "/api/upload-resource" {
if subOwner == "app" && subName == "app-casibase" {
return true
}
return false
} else { } else {
return false return false
} }