Andrey Antukh
45f0153e8f
🐛 Prevent admin from removing team owner in delete-team-member ( #11368 )
...
Add owner protection to ::delete-team-member RPC command.
Previously, a team admin could remove the team owner, permanently
locking them out of their team and all resources.
Changes:
- Fetch target member data before deletion
- Validate member exists (return :not-found if not)
- Reject removal if target is owner and caller is not owner
This mirrors the existing protection in update-team-member-role.
Closes #11367
AI-assisted-by: qwen3.7-plus
2026-09-01 08:48:09 +02:00
..
2026-05-10 09:16:41 +02:00
2026-08-26 17:24:59 +02:00
2026-09-01 08:44:06 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-09-01 08:46:28 +02:00
2026-05-29 11:24:58 +02:00
2026-07-31 12:04:10 +02:00
2026-08-06 10:17:14 +02:00
2026-08-26 13:05:36 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-08-21 12:43:23 +02:00
2026-05-29 11:24:58 +02:00
2026-06-02 09:33:02 +02:00
2026-08-06 20:53:58 +02:00
2026-05-29 11:24:58 +02:00
2026-08-05 21:52:59 +02:00
2026-07-31 13:19:45 +02:00
2026-07-30 07:32:02 +02:00
2026-08-21 12:55:24 +02:00
2026-08-18 15:13:49 +02:00
2026-07-30 07:32:02 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-09-01 08:46:28 +02:00
2026-05-29 11:24:58 +02:00
2026-08-05 17:35:59 +02:00
2026-05-29 11:24:58 +02:00
2026-08-25 09:37:42 +02:00
2026-06-15 13:04:19 +02:00
2026-09-01 08:46:28 +02:00
2026-08-31 13:31:17 +02:00
2026-08-17 12:13:56 +02:00
2026-08-18 14:37:51 +02:00
2026-08-26 08:08:40 +02:00
2026-08-10 13:43:27 +02:00
2026-08-18 11:18:44 +00:00
2026-08-07 11:24:24 +02:00
2026-08-26 08:33:20 +02:00
2026-08-17 15:27:06 +02:00
2026-09-01 08:48:09 +02:00
2026-09-01 08:46:59 +02:00
2026-08-05 17:42:49 +02:00
2026-07-09 19:34:15 +02:00
2026-08-05 09:41:48 +02:00
2026-08-19 07:58:44 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-05-29 11:24:58 +02:00
2026-09-01 08:47:46 +02:00