An administrator can cancel an account with the option to send an email to the user who needs to confirm the account being cancelled. When that user follows the link in that email the user gets the login page with an access denied message. After log in the link is no longer valid and the account is not being cancelled. The user has permission to delete its own account.

I'm not sure is this is a bug or a configuration issue.

Comments

mttjn’s picture

Same problem.

hanskuiters’s picture

Issue summary: View changes
gbyte’s picture

Version: 7.35 » 7.43

I'm experiencing the same issue on 7.43. When you click the email link being logged in as administrator the account gets deleted, but the user is denied access (regardless if they have the permission 'cancel account'). Is this a new thing? I believe this used to work in the past? I will test with the newest stable later and will be updating the issue.

joseph.olstad’s picture

Suspect it might be a configuration issue. On my test site I don't even see a cancel option, where do you find this? I'll try testing

hanskuiters’s picture

@joseph.olstad. You can check the option on deleting an account. It's on the account delete confirmation page: /user/[uid]/cancel The user then gets an mail to confirm.

hanskuiters’s picture

Version: 7.43 » 7.50
cilefen’s picture

Title: Cancel account confirm link results in access denied for user » [D7] User must be logged-in to use the cancel account link that is emailed
Version: 7.50 » 8.2.x-dev
cilefen’s picture

Version: 8.2.x-dev » 7.x-dev
cilefen’s picture

pancho’s picture

Status: Active » Closed (duplicate)

Don't think we need two issues for D8 and D7.
Marking this one a duplicate of #2829964: User must be logged-in to use the cancel account link that is emailed which has a patch and may afterwards be backported to D7.

joseph.olstad’s picture

Status: Closed (duplicate) » Active

Drupal policy insists on a seperate issue for D7.
this isn't a duplicate, it's following drupal policy. This way work can be done on the backport even if the D8 change is not ready. D7 work can be done without spamming the D8 issue.

pancho’s picture

How is that Drupal policy? Plus: how is here any work done separately and/or differently from the D8 issue that already has a working patch?

joseph.olstad’s picture

I'm not making the rules up.

states this in drupal policy:

Drupal 7.x

Where an issue filed against 8.x also applies to 7.x, a separate issue should be opened against 7.x, related to 8.x via the 'Parent issue' field (this can be done using the "Add child issue" link on the 8.x issue). The new Drupal 7 issue should be prefixed with [D7] in the title to make it easier to distinguish it from the Drupal 8 issue. Alternatively the needs backport to D7 issue tag can be added to the parent issue to indicate that a child issue still needs to be created (but actually creating the child issue is preferred).

https://www.drupal.org/core/backport-policy

Status: Active » Closed (outdated)

Automatically closed because Drupal 7 security and bugfix support has ended as of 5 January 2025. If the issue verifiably applies to later versions, please reopen with details and update the version.