mirror of
https://github.com/HChaZZY/alist.git
synced 2025-12-20 00:56:43 +08:00
feat: account manage api
This commit is contained in:
@@ -52,7 +52,7 @@ func UpdateUser(c *gin.Context) {
|
||||
}
|
||||
user, err := db.GetUserById(req.ID)
|
||||
if err != nil {
|
||||
common.ErrorResp(c, err, 500)
|
||||
common.ErrorResp(c, err, 500, true)
|
||||
return
|
||||
}
|
||||
if user.Role != req.Role {
|
||||
|
||||
Reference in New Issue
Block a user