Commit d92b3a9c by pupi1985

Fire u_delete_before event before deleting a user

parent 7ed3f6a0
......@@ -285,6 +285,11 @@ if (!QA_FINAL_EXTERNAL_USERS) {
if (qa_clicked('dodelete') && ($loginlevel >= QA_USER_LEVEL_ADMIN)) {
require_once QA_INCLUDE_DIR . 'app/users-edit.php';
qa_report_event('u_delete_before', $loginuserid, qa_get_logged_in_handle(), qa_cookie_get(), array(
'userid' => $userid,
'handle' => $useraccount['handle'],
));
qa_delete_user($userid);
qa_report_event('u_delete', $loginuserid, qa_get_logged_in_handle(), qa_cookie_get(), array(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment