Add GetUserNoCheck().

This commit is contained in:
Gucheng Wang
2021-11-20 15:46:54 +08:00
parent 91c0282040
commit 9eb09b7db0
2 changed files with 7 additions and 2 deletions

View File

@ -166,7 +166,7 @@ func (c *ApiController) UploadResource() {
switch tag {
case "avatar":
if user == nil {
user = object.GetUser(username)
user = object.GetUserNoCheck(username)
if user == nil {
c.ResponseError("user is nil for tag: \"avatar\"")
return