Cakephp check to see if two values are in array

carlasheep

New Member
I need to only allow members to write a review on a accommodation if they have stayed at the accommodation and there member_id matches the Auth->user('id').On the accommodation/view I pass the BookingRequests data.which looks like thisBookingRequest 0 member_id => 4 accepted => 1 1 member_id => 5 accepted => 0 2 member_id => 4 accepted => 0How would I search the array so I can allow only people who have stayed to add a review?
 
Back
Top