User Restore
Maintained by
Sebsoft BV, Rogier van Dongen
The Sebsoft User Restore Plugin offers you the possibility to restore user accounts
that were deleted from moodle.
Comments
Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.
This seems to be the query to detect who deleted the user. It might be wiser to disable that field if the tables are too big...
Did it work in the end?
Seems to be continually cycling through
SELECT CONCAT(firstname, ' ', lastname) AS deletedby, u.id AS deletedbyid, l.timecreated AS timedeletedby FROM mdl_logstore_standard_log l JOIN mdl_user u ON l.userid=u.id WHERE component = 'core' AND action= 'deleted' AND l.target = 'user' AND l.objectid = 'XXXX' ORDER BY l.timecreated DESC LIMIT 1
as well another query. There are almost 7000 users on the Moodle.
I'm unable to reproduce your issue on a clean Moodle2.9.1 environment running MySQL.
However I sent you a personal message on how to contact us with more information and possibly, screenshots.
Cheers!
After installation the plugin hands and never loads the page, im using moodle 2.9 and a mysql database
I will check into the unexpected behavior soon and update plugin accordingly to see the more expected behavior of undoing any suspension states when restoring the account so moodle will send the notification email accordingly. Thanks for clearance!
Cheers
Oh, only now I realized I am getting "Access denied" when trying to access your bugtracker at Bitbucket. Can you please check the permissions to make sure that the community is able to report issues for you there? Same applies to your User suspension tool, too.
What I was going to report was: When a user is deleted after being suspended for a while (as a result of the User suspension tool's action) and then is restored via this tool, it is restored in the suspended state. I don't think that is the expected behaviour. I guess the admin wants to see the account enabled after being restored. Also, Moodle does not send any messages to suspended accounts. So the restored user is not notified about his account being available again.
Thanks for sharing this plugin with the community and for your patience with the review and approval process. It looks good now to be approved. You are cleared to land, welcome to the Plugins directory. I am now going to remove the previous implementation of the plugin (block_userrestore).
http://integration.moodle.org/job/Precheck%20remote%20branch/12803/artifact/work/smurf.html