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
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

sanduhrs - July 3, 2009 - 12:19

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

tamasco - September 3, 2009 - 20:16

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

DavidWhite - September 15, 2009 - 20:57

@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

tamasco - September 16, 2009 - 18:17

There is no link at all. I will apply your patch. Thanks a lot.

#5

lasac - November 8, 2009 - 12:55

i to have no link nor button to delete the account, when logedin in as admin i see the button though.

#6

lasac - November 8, 2009 - 13:10

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

tamasco - November 9, 2009 - 05:15

thanks for the solution :)

#8

DavidWhite - November 12, 2009 - 14:40

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

sanduhrs - January 12, 2010 - 09:01

Changed #6 to:
if (user_access('delete own account') && $form['#uid'] == $user->uid) {
This seems more generic.
Commited to D6 DEV.
Thanks.

#10

sanduhrs - January 12, 2010 - 09:03
Assigned to:Anonymous» sanduhrs
Status:active» fixed

Setting status accordingly.

#11

System Message - January 26, 2010 - 09:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.