You are here

public static function UcAddressesPermissions::canDeleteAll in Ubercart Addresses 6.2

Same name and namespace in other branches
  1. 7 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.

3 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.

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);
}