*
* @param $uid
* Optional requester user id.
- *
+ *
* @return
* Data of the ongoing transactions. If $uid is specified,
* then just one transaction is returned.
}
if ($view_mode == 'full') {
- // @todo: there might be more than one transaction
- $transaction = muamba_current_transactions($node, $user->uid);
- $node->content['muamba'] = array(
- '#markup' => theme('muamba_widget', array('node' => $node, 'transaction' => $transaction)),
- '#weight' => 100,
- );
+ if ($node->uid != $user->uid) {
+ $transaction = muamba_current_transactions($node, $user->uid);
+ $node->content['muamba'] = array(
+ '#markup' => theme('muamba_widget', array('node' => $node, 'transaction' => $transaction)),
+ '#weight' => 100,
+ );
+ }
+ else {
+ // @todo: muamba_widget is not working anymore for item owners, make a custom
+ // widget just for handling multiple requests, see #34
+ }
return $node;
}