Although there is no link on core for this, it is possible to reach it through user/0/delete. Not user if this is right, but it could cause some problems. Other modules might generate links to this (views "delete link" did).

#3 deny_access_to_delete_uid0_909274_3.patch1.05 KBergonlogic
PASSED: [[SimpleTest]]: [MySQL] 190 pass(es). View


franz.glauber’s picture

ops, typo there. I meant "Not sure if this is right"

franz’s picture

forgot to change account. subscribing

ergonlogic’s picture

Status: Active » Needs review
1.05 KB
PASSED: [[SimpleTest]]: [MySQL] 190 pass(es). View

This is fixed in 7.x by the addition of a user_cancel_access() function, which I suppose could be backported as user_delete_access() in 6.x.

Not sure if it's kosher to add functions like this to 6.x, but I don't see any other way to do it.

franz’s picture

Looks ok. Doesn't seem like inserting much bloat into D6. Since it's not an API change, it shouldn't be a problem to add functions.

ergonlogic’s picture

Status: Needs review » Reviewed & tested by the community

RTBC, then?

franz’s picture


Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Looks good. I've changed the comment to say "from being deleted" instead of "from being cancelled", since there is no user cancellation in Drupal 6. Committed with that.

Status: Fixed » Closed (fixed)

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

fenstrat’s picture

Just nothing here, this broke the user_delete module #1425182: Fatal error Cannot redeclare user_delete_access() with Drupal-6.24

Gábor Hojtsy’s picture

Added this to the known issues on

In Drupal 6.24, if you have the contributed user_delete module enabled on your site, the update will fail with a Cannot redeclare user_delete_access() error. An update of user_delete module is being worked on.