Link to Delete Account Not Showing Up
DavidWhite - July 2, 2009 - 14:57
| Project: | User Delete |
| Version: | 6.x-1.2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | sanduhrs |
| Status: | closed |
Jump to:
Description
I don't see the link to Delete when I am logged in under a test account that I have created to try out this newest version of the module. For your reference, with the 6.x -1.0 version, the module was not working properly - it did not delete the account. We also have CiviCRM installed, and need the user's email address to be deleted from CiviCRM. Using my patch from comment #24 of Port 6.x, it worked perfectly.
I will fall back to this patch now, as we need to get this working. Not sure if this has been fixed in 6.x-1.2.
- David

#1
The "did not delete the account" issue should be fixed in the latest version.
The "delete"-tab (local task) has been removed, because it came in by accident in the first D6 release.
But there's a "delete"-button at the bottom of the user edit form.
Please check out the latest realase.
#2
Hello,
I'm facing the same problem. I installed and configured the module as well as set permissions. Then I created a test user account and logged in with it. But there is no link to delete my account. BTW, I'm using version 6.x-1.2.
Kind regards.
#3
@sanduhrs - Sorry that I haven't responded yet. I still have not been able to test out the latest version of the module. I will test (hopefully soon) and report back.
@tamasco - Are you saying that there's no link at the top to delete the account, or that there is no link, period? Check to make sure that there is a link at the bottom of the page to delete an account. If there is not a link there, then use my patch here: http://drupal.org/node/333460#comment-1747190
#4
There is no link at all. I will apply your patch. Thanks a lot.
#5
i to have no link nor button to delete the account, when logedin in as admin i see the button though.
#6
Ok the conflict (for me) is using this module with the "me-alias" module. Because of the me-alias the following snippet does not validate:
if(user_access('delete own account') && arg(1) == $user->uid) {For a fix:
ALTER ABOVE LINE ON LINE 73 with
if(user_access('delete own account') && arg(1) == $user->uid || arg(1) == "me" ) {When you are on the delete page the alias change from /me/ to /uid/ but that is for me not a problem but would look "nicer" if it just stayed me. I can alter that also but i do not want to much changing the core code so for that we probably will have to wait for a update on this module.
#7
thanks for the solution :)
#8
The solution in #6 works for me. We are also using the me-alias module. By modifying this line of code, the link now shows up, and the module behaves as expected.
#9
Changed #6 to:
if (user_access('delete own account') && $form['#uid'] == $user->uid) {This seems more generic.
Commited to D6 DEV.
Thanks.
#10
Setting status accordingly.
#11
Automatically closed -- issue fixed for 2 weeks with no activity.