Closed (fixed)
Project:
Invite
Version:
5.x-1.0
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
14 Feb 2007 at 00:44 UTC
Updated:
18 Mar 2007 at 03:30 UTC
Jump to comment: Most recent file
To duplicate, invite a user. Then, once the user has accepted the invitation and registered, go in and delete the user account. If you go into the Invite page, there should be a button to delete the invitation, but it is not there. This happens when the "Allow deletion of joined users" option is checked. I already saw this: http://drupal.org/node/85708, but this article applies to the 4.7 vers right?
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | invite-delete.47.patch | 9.68 KB | smk-ka |
| #3 | invite_delete.5.patch | 9.66 KB | smk-ka |
Comments
Comment #1
smk-ka commentedIMHO, the invitation should be deleted together with the user account, as this would allow us to trigger a 'cancel' event via the Invite API. For example, the userpoints module would then decrease the points the referrer once received when the invitation was sent and/or the invitee registered.
However, a deeper look at the invite module reveals several flaws that need to be addressed, so this patch will be a bigger one attempting to generally clean the code a bit.
--
Stefan Kudwien
www.unleashedmind.com
Comment #2
smk-ka commentedThe list of changes:
invite_delete()now checks that the user to be removed really had been invited by the current user. Formerly, it was possible for a maliscious user to arbitrarily delete invitations, if he knew the e-mail address of an invitee.Comment #3
smk-ka commentedPatch for the 5.x branch.
Comment #4
smk-ka commentedPatch backported to 4.7.x branch. Untested.
Comment #5
smk-ka commentedComment #6
smk-ka commentedCommitted a fix for the original issue.
I'm currently in the process of splitting the above over-large patch into smaller chunks, which makes it easier to test. Kindly forget it for now and closing this issue...
--
Stefan Kudwien
www.unleashedmind.com
Comment #7
smk-ka commentedComment #8
(not verified) commented