Hi everyone!
I've just recently begun developing with elgg and I'm trying to implement a user invitation system where a user must invite another user in order for that other user to register.
So what I'm doing is, when userA wants to invite a friend, userA submits a form which includes userB's email address. I then create a "pending" user for userB (subtype=pending) and I disable the account. However, I've noticed that once I disable an account I can't retrieve the object with get_user($guid).
Can anyone recommend perhaps a better approach to this, or perhaps a workaround? I also want to potentially be able to list pending users, however I dont want pending users to be able to login until they've become active users.
Thanks!
John
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- thomas@win_tho
thomas - 0 likes
- stringbeans@stringbeans
stringbeans - 0 likes
You must log in to post replies.Have a look at this plugin: It also shows disabled users: http://community.elgg.org/pg/plugins/pjotrsavitski/read/349821/simpleusermanagement
Perhaps it helps.
Great! Thank you for the link!
I took a look at how it retrieves disabled users and it calls this:
access_show_hidden_entities(true);
I'm guessing this will allow access to "disabled" entities. I also make sure I set that access back to its previous value once I'm done. Anyways, it works :)