mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-06 02:07:49 +08:00
Update go server (#13589)
### What problem does this PR solve? 1. Add more CLI command 2. Add some license hooks ### Type of change - [x] New Feature (non-breaking change which adds functionality) - [x] Refactoring Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -74,7 +74,7 @@ func (h *AuthHandler) AuthMiddleware() gin.HandlerFunc {
|
||||
|
||||
if !local.IsAdminAvailable() {
|
||||
license := local.GetAdminStatus()
|
||||
errMsg := fmt.Sprintf("server license %s, check admin server status", license.Reason)
|
||||
errMsg := fmt.Sprintf("server license %s", license.Reason)
|
||||
logger.Warn(errMsg)
|
||||
c.JSON(http.StatusServiceUnavailable, gin.H{
|
||||
"code": common.CodeUnauthorized,
|
||||
|
||||
Reference in New Issue
Block a user