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: allow host role update user info (#2515)
Vespa314d758ba270254
diff --git a/api/v2/user_service.go b/api/v2/user_service.goindex 161ca5ad1..47aec8053 100644--- a/api/v2/user_service.go+++ b/api/v2/user_service.go@@ -96,7 +96,7 @@ func (s *APIV2Service) UpdateUser(ctx context.Context, request *apiv2pb.UpdateUsif err != nil {return nil, status.Errorf(codes.Internal, "failed to get user: %v", err)}- if currentUser.Username != username && currentUser.Role != store.RoleAdmin {+ if currentUser.Username != username && currentUser.Role != store.RoleAdmin && currentUser.Role != store.RoleHost {return nil, status.Errorf(codes.PermissionDenied, "permission denied")}if request.UpdateMask == nil || len(request.UpdateMask.Paths) == 0 {