You are here

public static function UcAddressesPermissions::canEditAll in Ubercart Addresses 6.2

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

If the account may edit 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 edit all addresses. FALSE otherwise.

3 calls to UcAddressesPermissions::canEditAll()
UcAddressesPermissions::canEditAddress in class/UcAddressesPermissions.class.php
Check if the user can edit addresses of this user.
UcAddressesPermissions::canEditOwn in class/UcAddressesPermissions.class.php
If the account may edit its own addresses.
UcAddressesPermissions::canViewAll in class/UcAddressesPermissions.class.php
If the account may view all addresses.

File

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

Class

UcAddressesPermissions
The permission class: UcAddressesPermissions.

Code

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