function user_cancel_access

cis7 user.module user_cancel_access($account)
cle7 user.module user_cancel_access($account)
elmsmedia7 user.module user_cancel_access($account)
icor7 user.module user_cancel_access($account)
meedjum_blog7 user.module user_cancel_access($account)
mooc7 user.module user_cancel_access($account)

Menu access callback; limit access to account cancellation pages.

Limit access to users with the 'cancel account' permission or administrative users, and prevent the anonymous user from cancelling the account.

1 call to user_cancel_access()
2 string references to 'user_cancel_access'
og-7.x-1.x.database.php in sites/all/modules/ulmus/og/tests/og-7.x-1.x.database.php
Filled installation of Drupal 7.0, for test purposes.
user_menu in modules/user/user.module
Implements hook_menu().

File

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

Code

function user_cancel_access($account) {
  return ((($GLOBALS['user']->uid == $account->uid) && user_access('cancel account')) || user_access('administer users')) && $account->uid > 0;
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.