mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-09 12:00:47 +00:00
feat(task): replace built-in task adaptors with a sandboxed JS plugin system (#7076)
This commit is contained in:
@@ -27,6 +27,9 @@ func GetAllLogs(c *gin.Context) {
|
||||
common.ApiError(c, err)
|
||||
return
|
||||
}
|
||||
if c.GetInt("role") < common.RoleRootUser {
|
||||
model.FormatAdminLogs(logs)
|
||||
}
|
||||
pageInfo.SetTotal(int(total))
|
||||
pageInfo.SetItems(logs)
|
||||
common.ApiSuccess(c, pageInfo)
|
||||
|
||||
Reference in New Issue
Block a user