mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-05-04 01:07:48 +08:00
Add environments reading (#13701)
### What problem does this PR solve? environment variable > config file ### Type of change - [x] New Feature (non-breaking change which adds functionality) --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@ -473,7 +473,14 @@ func (h *Handler) ListRoles(c *gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
success(c, roles, "")
|
||||
if roles == nil {
|
||||
roles = []map[string]interface{}{}
|
||||
}
|
||||
|
||||
success(c, gin.H{
|
||||
"roles": roles,
|
||||
"total": len(roles),
|
||||
}, "")
|
||||
}
|
||||
|
||||
// CreateRoleHTTPRequest create role request
|
||||
|
||||
Reference in New Issue
Block a user