diff --git a/xfs/process.go b/xfs/process.go index ee8f28e3..401b67a1 100644 --- a/xfs/process.go +++ b/xfs/process.go @@ -152,7 +152,7 @@ func processGetURL(process *gou.Process) interface{} { claims := helper.JwtValidate(token) userID, err := session.Global().ID(claims.SID).Get("user_id") - if err != nil || userID == "" { + if err != nil || userID == nil { exception.New("session expired", 403).Throw() }