mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:31:46 +08:00
Refactor the original db code.
This commit is contained in:
@ -21,7 +21,6 @@ import (
|
||||
|
||||
"github.com/astaxie/beego/utils/pagination"
|
||||
"github.com/casbin/casdoor/object"
|
||||
"github.com/casbin/casdoor/original"
|
||||
"github.com/casbin/casdoor/util"
|
||||
)
|
||||
|
||||
@ -120,7 +119,7 @@ func (c *ApiController) UpdateUser() {
|
||||
|
||||
affected := object.UpdateUser(id, &user, columns)
|
||||
if affected {
|
||||
original.UpdateUserToOriginalDatabase(&user)
|
||||
object.UpdateUserToOriginalDatabase(&user)
|
||||
}
|
||||
|
||||
c.Data["json"] = wrapActionResponse(affected)
|
||||
|
Reference in New Issue
Block a user