aboutsummaryrefslogtreecommitdiffstats
path: root/routers/api/packages/container/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/packages/container/auth.go')
-rw-r--r--routers/api/packages/container/auth.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/routers/api/packages/container/auth.go b/routers/api/packages/container/auth.go
index 33f439ec3e..6fb32c389d 100644
--- a/routers/api/packages/container/auth.go
+++ b/routers/api/packages/container/auth.go
@@ -30,13 +30,10 @@ func (a *Auth) Verify(req *http.Request, w http.ResponseWriter, store auth.DataS
if uid == 0 {
return nil, nil
}
- if uid == -1 {
- return user_model.NewGhostUser(), nil
- }
- u, err := user_model.GetUserByID(req.Context(), uid)
+ u, err := user_model.GetPossibleUserByID(req.Context(), uid)
if err != nil {
- log.Error("GetUserByID: %v", err)
+ log.Error("GetPossibleUserByID: %v", err)
return nil, err
}