Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.
Go dockerfossgomarkdownmemomicroblognote-takingnotesopen-sourceown-your-datareactself-hostedsqlitetimeline
fix: update user session retrieval to use user.ID instead of userID (#5294)
Huang Youchuan26cb357685a5
diff --git a/server/router/api/v1/acl.go b/server/router/api/v1/acl.goindex 99c24c979..6e974d316 100644--- a/server/router/api/v1/acl.go+++ b/server/router/api/v1/acl.go@@ -224,7 +224,7 @@ func (in *GRPCAuthInterceptor) authenticateBySession(ctx context.Context, sessio}// Get user sessions and validate the sessionID- sessions, err := in.Store.GetUserSessions(ctx, userID)+ sessions, err := in.Store.GetUserSessions(ctx, user.ID)if err != nil {return nil, errors.Wrap(err, "failed to get user sessions")}