Show all orders for a Contact.
authorIain Patterson <me@iain.cx>
Mon, 13 May 2013 08:51:27 +0000 (04:51 -0400)
committerIain Patterson <me@iain.cx>
Mon, 13 May 2013 12:48:07 +0000 (08:48 -0400)
Show order history for Contacts who are beneficiaries or requesters,
instead of only the former.

lib/contact.php

index 874c918..d5975b9 100644 (file)
     global $contact_roles, $parcel_sizes, $parcel_contents;
 
     if (! $contact) $contact = new Contact;
-    else if ($contact->getRole() & $GLOBALS['ROLE_BENEFICIARY']) {
+    else if ($contact->getRole() & ($GLOBALS['ROLE_BENEFICIARY'] | $GLOBALS['ROLE_REQUESTER'])) {
       $state_mask = $GLOBALS['STATE_ANY'];
       $state_mask &= ~$GLOBALS['STATE_DELIVERED'];
       $state_mask &= ~$GLOBALS['STATE_CANCELLED'];