function user_delete_access in User Delete 6.2
Create a custom acces control function to verify if a user has access to the user/%/delete menu entry.
2 string references to 'user_delete_access'
- user_delete_menu in ./
user_delete.module - Implementation of hook_menu().
- user_delete_menu_alter in ./
user_delete.module - Implementation of hook_menu_alter().
File
- ./
user_delete.module, line 57 - Provide account cancellation methods and API to provide the same functionalty as Drupal 7 for cancelling accounts.
Code
function user_delete_access($account) {
global $user;
return user_access('administer users') || user_access('cancel account') && $account->uid == $user->uid;
}