public static function UcAddressesPermissions::canEditAll in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 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.
4 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.
- uc_addresses_entity_access in ./
uc_addresses.module - Access callback for address entity.
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);
}