mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:40:19 +08:00
Remove GetOrganizationByName().
This commit is contained in:
@ -152,7 +152,7 @@ func (c *ApiController) GetAccount() {
|
||||
|
||||
username := c.GetSessionUser()
|
||||
user := object.GetUser(username)
|
||||
organization := object.GetOrganization(util.GetId(user.Owner))
|
||||
organization := object.GetOrganizationByUser(user)
|
||||
resp = Response{Status: "ok", Msg: "", Data: user, Data2: organization}
|
||||
|
||||
c.Data["json"] = resp
|
||||
|
Reference in New Issue
Block a user