Lauri Ojansivu
57a24eb8ba
Own account deletion and username change follow their settings on the server, and the last admin stays.
...
Admin Panel / People / Login / Self delete user account unticked only hid the
Delete and Anonymize buttons: removeUser and anonymizeUser on your own account
still worked, and so did DELETE /api/users/:userId for an administrator's own
id. And removeUser's self branch returned before the last-administrator
check, so the only site administrator could delete themselves.
Now every self-removal path asks models/lib/selfAccountRemoval.js: refused
while the setting is off (recorded in Admin Panel / Problems as Disabled
setting, never disabling the account), and refused for the last site
administrator (not recorded: the button is there, so it is ordinary use).
Username Change unticked: the setUsername method already refused, but the
Users allow rule still let a client write its own username directly; a
Users.deny rule now refuses that and records it.
Thanks to xet7 !
2026-11-22 18:39:49 +02:00
..
2026-11-21 18:04:52 +02:00
2026-08-18 22:38:18 +03:00
2026-11-22 18:39:49 +02:00
2026-11-03 12:37:10 +02:00
2026-10-16 23:45:35 +03:00
2026-10-16 23:45:35 +03:00
2026-06-20 17:45:43 +03:00
2026-03-24 01:51:20 +02:00
2026-09-25 02:29:43 +03:00
2026-11-22 12:58:26 +02:00
2026-11-22 12:58:26 +02:00
2026-09-06 18:35:33 +03:00
2026-11-04 19:07:09 +02:00
2026-11-22 12:58:26 +02:00
2026-09-23 21:09:55 +03:00
2026-10-28 00:27:24 +02:00
2026-10-28 00:27:24 +02:00
2026-02-07 16:30:08 +00:00
2026-11-07 00:51:53 +02:00
2026-10-17 15:52:26 +03:00
2026-07-28 22:25:15 +03:00
2026-10-17 14:39:43 +03:00
2026-09-28 18:19:22 +03:00
2026-03-24 01:51:20 +02:00
2026-09-28 18:13:46 +03:00
2026-10-17 15:52:26 +03:00
2026-06-21 12:41:07 +03:00
2026-06-20 17:45:43 +03:00
2026-06-21 07:43:28 +03:00
2026-09-27 01:21:57 +03:00
2026-11-22 17:22:16 +02:00
2026-07-23 18:59:30 +03:00
2026-10-11 21:04:30 +03:00
2026-11-14 18:36:51 +02:00
2026-10-17 15:52:26 +03:00
2026-10-16 23:45:35 +03:00
2026-11-16 16:46:06 +02:00
2026-09-10 19:05:55 +03:00
2026-03-24 01:51:20 +02:00
2026-03-24 01:51:20 +02:00
2026-10-07 03:08:48 +03:00
2026-10-14 09:28:45 +03:00
2026-09-28 17:33:33 +03:00
2026-10-07 03:08:48 +03:00
2026-08-29 06:01:38 +03:00
2026-10-27 14:56:21 +02:00
2026-10-16 23:45:35 +03:00
2026-11-21 18:49:26 +02:00
2026-11-15 03:11:14 +02:00
2026-09-19 14:32:29 +03:00
2026-09-19 14:32:29 +03:00
2020-05-24 12:46:39 +02:00
2026-09-10 20:52:39 +03:00
2026-11-14 18:36:51 +02:00
2026-09-27 13:45:41 +03:00
2026-10-17 01:01:34 +03:00
2026-05-14 05:04:26 +03:00
2026-10-01 19:18:58 +03:00
2026-11-02 14:15:02 +02:00
2026-09-23 13:58:24 +03:00
2026-09-29 17:59:21 +03:00
2026-09-28 18:47:02 +03:00
2026-09-28 18:47:02 +03:00
2026-09-10 21:11:34 +03:00
2026-10-25 16:55:03 +02:00
2025-10-21 15:19:19 +03:00
2026-10-17 00:23:19 +03:00
2026-08-14 05:22:31 +03:00
2026-07-17 21:15:39 +03:00
2026-10-17 15:52:26 +03:00
2026-09-11 10:15:44 +03:00
2026-09-19 14:32:29 +03:00
2026-10-16 23:45:35 +03:00
2026-10-08 12:06:49 +03:00
2026-09-29 09:48:49 +03:00
2026-09-14 19:02:40 +03:00
2026-10-31 00:08:20 +02:00
2026-06-18 00:25:39 +03:00
2026-03-08 11:04:53 +02:00
2026-10-27 20:14:03 +02:00
2026-07-23 18:59:30 +03:00
2026-10-14 09:28:45 +03:00
2026-11-19 00:01:42 +02:00
2026-08-25 17:27:33 +03:00
2026-11-16 16:46:06 +02:00
2026-07-31 04:09:40 +03:00
2026-07-31 04:09:40 +03:00
2025-12-23 07:49:37 +02:00
2026-06-20 19:17:00 +03:00
2026-10-08 08:54:04 +03:00
2026-03-24 01:51:20 +02:00
2026-09-25 23:35:16 +03:00
2026-10-25 06:32:28 +02:00
2026-10-31 03:52:32 +02:00
2026-10-10 15:28:26 +03:00
2026-09-25 02:29:43 +03:00
2026-09-25 12:39:19 +03:00
2026-07-24 09:13:02 +03:00
2026-10-16 23:45:35 +03:00
2026-10-16 23:45:35 +03:00
2026-10-14 14:59:25 +03:00
2020-05-24 12:46:39 +02:00
2026-11-02 14:15:02 +02:00
2026-10-25 17:59:52 +02:00
2026-10-28 02:57:21 +02:00
2026-09-30 01:16:12 +03:00
2026-10-29 02:02:54 +02:00
2026-09-19 14:00:48 +03:00
2026-08-16 15:36:04 +03:00
2026-06-20 14:40:13 +03:00
2026-10-16 23:45:35 +03:00
2026-10-27 16:36:01 +02:00
2026-10-14 14:23:31 +03:00
2026-09-28 18:34:40 +03:00
2026-08-14 04:32:04 +03:00
2026-10-14 16:49:21 +03:00
2026-10-07 03:08:48 +03:00
2026-03-08 11:04:53 +02:00
2026-10-14 17:02:20 +03:00
2026-10-17 15:52:26 +03:00
2026-07-30 15:57:58 +03:00
2026-09-19 14:32:29 +03:00
2026-09-14 02:45:46 +03:00
2026-09-14 02:48:52 +03:00
2026-03-24 01:51:20 +02:00
2025-10-10 21:46:07 +03:00
2026-11-22 07:21:01 +02:00
2026-10-14 15:44:01 +03:00
2026-11-22 12:58:26 +02:00