wizardchen
f6684f226b
fix(rbac): allow source-tenant Admin+ to manage their cross-tenant shares
...
Plan 3 of #1303 lifts share ownership to the tenant level, but
RemoveShare / UpdateSharePermission still gated on the original sharer
user. If that user left the tenant or moved on, the source tenant lost
the ability to revoke its own share — only the target org's admin
could clean up, which is governance theatre rather than ownership.
Extend the authz envelope on KB-share and agent-share mutations:
(1) original sharer (unchanged);
(2) source-tenant Admin+ — new, encodes "ownership lives in the
tenant" by reading callerTenantRole from ctx;
(3) target-org admin (unchanged).
Factored out as kbShareService.callerCanManageShare so Update and
Remove cannot drift apart.
2026-05-18 17:28:58 +08:00
..
2026-05-12 21:16:37 +08:00
2026-05-05 00:22:27 +08:00
2026-02-25 14:29:54 +08:00
2026-04-22 21:17:29 +08:00
2026-05-18 15:58:46 +08:00
2026-05-13 12:29:10 +08:00
2026-05-13 12:29:10 +08:00
2026-05-18 16:49:14 +08:00
2026-05-18 16:49:14 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2025-08-05 15:08:07 +08:00
2026-05-17 15:27:52 +08:00
2026-03-25 22:08:29 +08:00
2026-05-14 15:53:58 +08:00
2026-03-25 22:08:29 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-06 17:40:10 +08:00
2026-05-14 15:53:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2026-04-02 12:04:04 +08:00
2026-03-16 18:18:23 +08:00
2026-05-18 17:28:58 +08:00
2026-05-10 00:01:06 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-06 17:09:42 +08:00
2026-05-06 11:23:32 +08:00
2026-05-06 17:40:10 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 15:58:46 +08:00
2026-03-16 02:26:47 +08:00
2026-05-06 17:17:07 +08:00
2026-04-16 23:15:02 +08:00
2026-05-18 17:28:58 +08:00
2026-05-14 15:53:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-17 15:27:52 +08:00
2026-05-17 15:27:52 +08:00
2026-05-10 22:57:12 +08:00
2026-05-14 15:56:43 +08:00
2025-11-28 16:10:37 +08:00
2026-05-17 15:27:52 +08:00
2026-03-02 21:21:49 +08:00
2026-03-06 21:08:12 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-17 15:27:52 +08:00
2026-05-18 17:28:58 +08:00
2026-05-12 20:27:20 +08:00
2026-05-14 15:56:43 +08:00
2026-05-14 15:56:43 +08:00
2026-02-04 20:08:49 +08:00
2026-05-10 00:01:06 +08:00
2026-05-10 00:01:06 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-18 17:28:58 +08:00
2026-05-09 13:14:01 +08:00
2026-05-18 15:58:46 +08:00
2026-05-18 15:58:46 +08:00
2026-05-17 15:27:52 +08:00
2026-04-11 18:51:16 +08:00
2026-04-17 16:38:02 +08:00
2026-04-15 11:37:24 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:32 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:32 +08:00
2026-04-22 21:18:32 +08:00
2026-05-08 21:48:52 +08:00
2026-05-06 11:23:32 +08:00
2026-05-10 00:01:06 +08:00
2026-04-22 21:18:09 +08:00
2026-04-22 21:18:09 +08:00
2026-05-10 00:01:06 +08:00
2026-05-08 21:48:52 +08:00
2026-05-08 13:32:54 +08:00
2026-05-10 00:01:06 +08:00