mateclaw/mateclaw-server/src/main/resources
matevip a73b640c87 fix(workspace): scope default workspace backfill to admins only
Restart-time backfill in WorkspaceSchemaMigration was inserting every
existing user into the default workspace and copying mate_user.role
('user'/'admin') into mate_workspace_member.role, whose valid domain is
{owner, admin, member, viewer}. Result: non-admin users assigned to
other workspaces were silently re-attached to the default workspace
with role='user', failing roleLevel() lookup and 403'ing on Agents.

- Filter the INSERT on u.role = 'admin' and hard-code the membership
  role to 'owner', removing the role-domain mismatch and the
  workspace-isolation violation in one change.
- Add V60__fix_invalid_workspace_member_roles.sql (h2 + mysql) to
  drop already-corrupted default-workspace rows for users who have a
  valid membership elsewhere, and downgrade the orphan rows to
  'member' so those users aren't locked out entirely.

Refs https://github.com/matevip/mateclaw/issues/29
2026-04-28 23:40:21 +08:00
..
db fix(workspace): scope default workspace backfill to admins only 2026-04-28 23:40:21 +08:00
prompts fix(agent): break self-replicating 400, narration, args truncation, queue drop 2026-04-27 07:51:01 +08:00
skills fix(skills/docx): bump to v1.1.0 + reroute create-new intents to renderDocx 2026-04-23 16:31:13 +08:00
templates feat(ux): Phase 1 — onboarding, doctor, templates, navigation convergence 2026-04-09 00:32:35 +08:00
application-mysql.yml fix: mysql migration compatibility + ollama tool-support gating + actionable error UI 2026-04-17 11:17:27 +08:00
application.yml fix(agent): persist mid-turn narrative, queue follow-ups without dispose, flush on shutdown 2026-04-27 07:51:49 +08:00
logback-spring.xml Initial commit: MateClaw — Java + Vue 3 AI Assistant System 2026-04-04 19:03:49 +08:00
messages_en.properties i18n: add error messages for Claude Code OAuth failures 2026-04-26 08:34:08 +08:00
messages.properties i18n: add error messages for Claude Code OAuth failures 2026-04-26 08:34:08 +08:00