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 this
BookingRequest 0 member_id => 4 accepted => 1 1 member_id => 5 accepted => 0 2 member_id => 4 accepted => 0
How would I search the array so I can allow only people who have stayed to add a review?