chihlasm
64f004a62c
feat: tenant isolation Phase 4 — RLS on 31 remaining tables + script_builder fix
Enable RLS on all remaining tenant-scoped tables (31 tables):
Standard policy (tenant sees own rows):
users, account_invites, account_limit_overrides, account_feature_overrides,
subscriptions, ai_chat_sessions, ai_conversations, ai_session_steps,
ai_session_embeddings, ai_suggestions, ai_usage, assistant_chats,
attachments, copilot_conversations, feedback, file_uploads, fork_points,
kb_imports, notifications, notification_configs, notification_logs,
psa_activity_logs, psa_member_mappings, script_builder_sessions,
script_categories, session_ratings, tree_embeddings, user_folders,
user_pinned_trees
Platform-visibility policy (own rows OR PLATFORM_ACCOUNT_ID):
platform_steps, template_trees
Intentionally skipped:
accounts (IS the root table, no account_id column)
plan_feature_defaults (platform config, no account_id column)
Also fixes script_builder_service.create_session() which was missing
account_id= on ScriptBuilderSession construction, causing 500s on all
script builder endpoints (pre-existing CI failure).
Adds Phase 4 RLS isolation tests covering: users, script_builder_sessions,
ai_session_steps, notifications, platform_steps, template_trees.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-12 01:25:28 +00:00
..
2026-04-10 03:59:28 +00:00
2026-02-17 10:35:31 -05:00
2026-02-17 13:20:55 -05:00
2026-04-11 07:02:35 +00:00
2026-04-09 05:25:24 +00:00
2026-04-10 05:21:26 +00:00
2026-02-03 19:15:36 -05:00
2026-02-25 23:17:29 -05:00
2026-02-17 11:48:08 -05:00
2026-01-23 12:17:18 -05:00
2026-04-09 05:20:56 +00:00
2026-04-09 06:31:17 +00:00
2026-04-11 07:02:35 +00:00
2026-02-07 21:17:25 -05:00
2026-03-16 23:51:42 -04:00
2026-02-07 23:06:13 -05:00
2026-03-19 05:12:10 +00:00
2026-03-19 20:35:35 +00:00
2026-04-10 06:57:41 +00:00
2026-04-09 06:41:00 +00:00
2026-01-22 14:38:53 -05:00
2026-02-01 00:08:06 -05:00
2026-02-01 01:32:10 -05:00
2026-02-01 16:53:19 -05:00
2026-02-02 01:31:13 -05:00
2026-02-02 01:31:13 -05:00
2026-02-03 02:07:46 -05:00
2026-02-03 02:07:46 -05:00
2026-02-04 02:47:18 -05:00
2026-02-05 02:42:44 -05:00
2026-02-05 22:04:37 -05:00
2026-02-05 22:44:05 -05:00
2026-02-05 22:44:05 -05:00
2026-02-05 23:28:41 -05:00
2026-02-05 23:33:05 -05:00
2026-02-07 02:38:47 -05:00
2026-02-07 02:38:47 -05:00
2026-02-07 02:38:47 -05:00
2026-02-07 02:38:47 -05:00
2026-02-07 02:55:53 -05:00
2026-02-07 03:06:35 -05:00
2026-02-07 19:10:47 -05:00
2026-02-07 19:10:47 -05:00
2026-02-07 23:06:13 -05:00
2026-02-07 23:06:13 -05:00
2026-02-08 06:05:59 -05:00
2026-02-08 08:14:22 -05:00
2026-02-10 09:45:26 -05:00
2026-02-11 17:52:12 -05:00
2026-02-11 21:42:58 -05:00
2026-02-13 01:42:51 -05:00
2026-02-13 01:42:51 -05:00
2026-02-13 01:42:51 -05:00
2026-02-13 08:32:20 -05:00
2026-02-14 04:13:52 -05:00
2026-02-15 22:45:19 -05:00
2026-02-15 22:45:19 -05:00
2026-02-15 22:45:19 -05:00
2026-02-16 15:23:14 -05:00
2026-03-04 20:44:25 -05:00
2026-03-04 20:44:25 -05:00
2026-03-04 20:44:25 -05:00
2026-03-04 20:44:25 -05:00
2026-03-04 20:44:25 -05:00
2026-03-04 20:44:25 -05:00
2026-03-05 02:03:38 -05:00
2026-03-05 01:41:22 -05:00
2026-03-05 22:43:02 -05:00
2026-03-05 22:43:02 -05:00
2026-03-07 15:51:37 -05:00
2026-03-07 15:51:37 -05:00
2026-03-07 15:51:37 -05:00
2026-03-10 09:49:51 -04:00
2026-03-10 20:56:28 -04:00
2026-03-10 20:56:28 -04:00
2026-03-11 23:29:51 -04:00
2026-03-14 20:18:59 -04:00
2026-03-15 01:45:35 -04:00
2026-03-15 01:45:35 -04:00
2026-03-15 01:45:35 -04:00
2026-03-15 01:45:35 -04:00
2026-03-21 16:55:08 -04:00
2026-03-21 17:17:41 -04:00
2026-03-21 21:06:58 -04:00
2026-03-23 13:12:06 +00:00
2026-03-23 17:29:25 +00:00
2026-03-24 14:45:54 +00:00
2026-03-28 02:23:56 +00:00
2026-03-29 06:35:11 +00:00
2026-04-01 05:09:42 +00:00
2026-04-11 07:02:35 +00:00
2026-04-09 05:34:32 +00:00
2026-04-09 05:12:18 +00:00
2026-03-19 05:12:10 +00:00
2026-02-17 11:29:25 -05:00
2026-04-09 05:15:10 +00:00
2026-03-19 19:08:06 +00:00
2026-03-20 03:15:37 +00:00
2026-02-25 23:52:48 -05:00
2026-03-19 05:12:10 +00:00
2026-02-23 00:03:54 -05:00
2026-04-09 05:16:50 +00:00
2026-03-20 03:48:09 +00:00
2026-04-09 06:14:04 +00:00
2026-04-11 07:02:35 +00:00
2026-04-12 01:25:28 +00:00
2026-03-20 04:06:41 +00:00
2026-03-19 12:37:54 +00:00
2026-03-19 01:30:05 +00:00
2026-04-10 04:02:10 +00:00
2026-04-09 06:20:00 +00:00
2026-03-19 01:30:05 +00:00
2026-03-20 03:42:01 +00:00
2026-03-20 00:00:34 +00:00
2026-02-27 03:42:10 -05:00
2026-02-18 17:39:44 -05:00
2026-03-16 23:51:42 -04:00
2026-03-21 01:23:33 +00:00
2026-03-18 14:27:36 +00:00
2026-02-25 23:17:29 -05:00