This is an automated email from the ASF dual-hosted git repository.
hsluoyz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/casbin-gateway.git
The following commit(s) were added to refs/heads/master by this push:
new 4f6f956 feat: add casdoor_ to isFrontendBaseDirEnabledRepo()
4f6f956 is described below
commit 4f6f95691f4b8e67c0f279eba23824dd70a3a091
Author: Yang Luo <[email protected]>
AuthorDate: Tue Apr 28 02:17:15 2026 +0800
feat: add casdoor_ to isFrontendBaseDirEnabledRepo()
---
run/run.go | 3 +++
1 file changed, 3 insertions(+)
diff --git a/run/run.go b/run/run.go
index 969b8b5..4c7806e 100644
--- a/run/run.go
+++ b/run/run.go
@@ -28,6 +28,9 @@ func isTargetRepo(siteName string) bool {
}
func isFrontendBaseDirEnabledRepo(siteName string) bool {
+ if strings.HasPrefix(siteName, "casdoor_") && siteName != "casdoor_my" {
+ return true
+ }
return strings.HasPrefix(siteName, "casibase_") &&
!strings.HasSuffix(siteName, "keli") && !strings.HasSuffix(siteName, "med2")
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]