mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
fix: returning current user instead of requested one
This commit is contained in:
parent
affff0c386
commit
991e64b961
@ -42,5 +42,5 @@ func CheckEffectiveUser(w http.ResponseWriter, r *http.Request, userService serv
|
||||
return nil, err
|
||||
}
|
||||
|
||||
return authorizedUser, nil
|
||||
return requestedUser, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user