public static function UcAddressesPermissions::canDeleteOwn in Ubercart Addresses 7
Same name and namespace in other branches
- 6.2 class/UcAddressesPermissions.class.php \UcAddressesPermissions::canDeleteOwn()
If the account may delete its own 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 its own addresses. FALSE otherwise.
2 calls to UcAddressesPermissions::canDeleteOwn()
- UcAddressesPermissions::canDeleteAddress in class/UcAddressesPermissions.class.php 
- Check if the user can delete addresses of this user. Default addresses can never be deleted.
- UcAddressesPermissions::canViewOwn in class/UcAddressesPermissions.class.php 
- If the account may view its own addresses.
File
- class/UcAddressesPermissions.class.php, line 372 
- Permission class.
Class
- UcAddressesPermissions
- The permission class: UcAddressesPermissions.
Code
public static function canDeleteOwn($account = NULL) {
  $account = self::getAccount($account);
  return user_access(self::DELETE_OWN, $account) || self::canDeleteAll($account);
}