You are here

function user_delete_access in Drupal 6

Menu access callback; limit access to account deletion pages.

Limit access to administrative users, and prevent the anonymous user account from being deleted.

1 string reference to 'user_delete_access'
user_menu in modules/user/user.module
Implementation of hook_menu().

File

modules/user/user.module, line 2605
Enables the user registration and login system.

Code

function user_delete_access($account) {
  return user_access('administer users') && $account->uid > 0;
}