aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--muamba.business.inc3
1 files changed, 2 insertions, 1 deletions
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']);
}
}