You are here

public static function UcAddressesPermissions::canDeleteAll in Ubercart Addresses 7

Same name and namespace in other branches
  1. 6.2 class/UcAddressesPermissions.class.php \UcAddressesPermissions::canDeleteAll()

If the account may delete all addresses.

@access public @static

Parameters

object $account: (optional) The account to check access for. Defaults to the current active user.

Return value

boolean TRUE if the account may delete all addresses. FALSE otherwise.

4 calls to UcAddressesPermissions::canDeleteAll()
UcAddressesPermissions::canDeleteAddress in class/UcAddressesPermissions.class.php
Check if the user can delete addresses of this user. Default addresses can never be deleted.
UcAddressesPermissions::canDeleteOwn in class/UcAddressesPermissions.class.php
If the account may delete its own addresses.
UcAddressesPermissions::canViewAll in class/UcAddressesPermissions.class.php
If the account may view all addresses.
uc_addresses_entity_access in ./uc_addresses.module
Access callback for address entity.

File

class/UcAddressesPermissions.class.php, line 392
Permission class.

Class

UcAddressesPermissions
The permission class: UcAddressesPermissions.

Code

public static function canDeleteAll($account = NULL) {
  $account = self::getAccount($account);
  return user_access(self::DELETE_ALL, $account);
}