Differences From Artifact [28d88987ca]:
- File src/setupuser.c — part of check-in [25eae5150c] at 2019-05-17 05:58:16 on branch trunk — /setup_uedit now records deletion of a user in the administrative log. (user: stephan size: 29216)
To Artifact [c99de47894]:
- File src/setupuser.c — part of check-in [b14cf3bc68] at 2019-05-17 07:27:00 on branch moderate-disapprove-on-user-delete — When deleting a user via /setup_uedit, also disapprove any pending-moderation entries for users which are no longer in the user table. This is programmatically simpler than only removing entries for the removed user but (potential corner case) would also disapprove pending modreq entries if a user account is renamed while moderation of their content is pending. (user: stephan size: 29265) [more...]
| ︙ | |||
295 296 297 298 299 300 301 302 303 304 305 306 307 308 | 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 | + |
/* Check for requests to delete the user */
if( P("delete") && cgi_csrf_safe(1) ){
int n;
if( P("verifydelete") ){
/* Verified delete user request */
db_multi_exec("DELETE FROM user WHERE uid=%d", uid);
moderation_disapprove_for_missing_users();
admin_log("Deleted user [%s] (uid %d).",
PD("login","???")/*safe-for-%s*/, uid);
cgi_redirect(cgi_referer("setup_ulist"));
return;
}
n = db_int(0, "SELECT count(*) FROM event"
" WHERE user=%Q AND objid NOT IN private",
|
| ︙ |