function user_delete_access

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 drupal-6.x/modules/user/user.module
Implementation of hook_menu().

Archivo

drupal-6.x/modules/user/user.module, line 2576
Enables the user registration and login system.

Código

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