From 3bae0572ed01c0dfc80a4d52e3eb05b766a73649 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Wed, 9 Nov 2011 12:37:31 -0200 Subject: Additional check at muamba_reject_all() --- muamba.business.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/muamba.business.inc b/muamba.business.inc index f0a3e25..d041702 100644 --- a/muamba.business.inc +++ b/muamba.business.inc @@ -215,10 +215,11 @@ function muamba_accept($mid) { * Reject all item requests. */ function muamba_reject_all($node) { + global $user; $transactions = muamba_current_transactions($node); foreach ($transactions as $transaction) { - if ($transaction['status'] == MUAMBA_REQUESTED) { + if ($transaction['status'] == MUAMBA_REQUESTED && $transaction['owner'] == $user->uid) { muamba_reject($transaction['mid']); } } -- cgit v1.2.3