1 user.entity.inc public static User::createAccess($bundle = NULL, $account = NULL)

Overrides Entity::createAccess().

Overrides Entity::createAccess

File

core/modules/user/user.entity.inc, line 177
Entity classes and controllers for User module.

Class

User
Defines the user entity class.

Code

public static function createAccess($bundle = NULL, $account = NULL) {
  // If no user object is supplied, the access check is for the current user.
  if (empty($account)) {
    $account = $GLOBALS['user'];
  }

  return user_access('administer users', $account);
}