You are here

function uc_addresses_access in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 uc_addresses.module \uc_addresses_access()

Checks address access.

Wrapper function for the permissions class.

Parameters

string $method: The method to call in UcAddressesPermissions.

object $address_user: (optional) User object, the owner of the address(es).

UcAddressesAddress: (optional) The address object.

Return value

boolean TRUE if access is granted. FALSE otherwise.

See also

UcAddressesPermissions

File

./uc_addresses.module, line 409
Adds user profile address support to Ubercart.

Code

function uc_addresses_access($method, $address_user = NULL, UcAddressesAddress $address = NULL) {
  return UcAddressesPermissions::$method($address_user, $address);
}