From: Iain Patterson Date: Mon, 13 May 2013 08:51:27 +0000 (-0400) Subject: Show all orders for a Contact. X-Git-Tag: 2013-05-13~11 X-Git-Url: http://git.iain.cx/?p=readifood.git;a=commitdiff_plain;h=5443dbf64833b4cfddcc07d43657dcff371550c4 Show all orders for a Contact. Show order history for Contacts who are beneficiaries or requesters, instead of only the former. --- diff --git a/lib/contact.php b/lib/contact.php index 874c918..d5975b9 100644 --- a/lib/contact.php +++ b/lib/contact.php @@ -178,7 +178,7 @@ 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'];