Commit 38d135de authored by Ben's avatar Ben Committed by Mark Harding
Browse files

[sprint/InterestingIguana](bug): Blocked users can no longer send you a wire transactions #608

parent b9a83297
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -52,6 +52,10 @@ class wire implements Interfaces\Api
            return Factory::response(['status' => 'error', 'message' => 'You cannot send a wire to yourself!']);
            return Factory::response(['status' => 'error', 'message' => 'You cannot send a wire to yourself!']);
        }
        }


        if (Core\Security\ACL\Block::_()->isBlocked(Core\Session::getLoggedInUserGuid(), $user->guid)) {
            return Factory::response(['status' => 'error', 'message' => 'You cannot send a wire to a user who has blocked you.']);
        }

        $amount = BigNumber::_($_POST['amount']);
        $amount = BigNumber::_($_POST['amount']);


        $recurring = isset($_POST['recurring']) ? $_POST['recurring'] : false;
        $recurring = isset($_POST['recurring']) ? $_POST['recurring'] : false;