From b084dc02f279ec75b6647cec4b16801e489f341e Mon Sep 17 00:00:00 2001 From: bruce Date: Sat, 16 Mar 2019 17:42:10 +0100 Subject: [PATCH] debug --- contracts/contracts/Organization.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/contracts/Organization.sol b/contracts/contracts/Organization.sol index 23fcda1..ba956ea 100644 --- a/contracts/contracts/Organization.sol +++ b/contracts/contracts/Organization.sol @@ -141,7 +141,7 @@ contract Organization is Mortal { // Request a membership for a given address, name, and surname function requestMembership (string memory _firstName, string memory _lastName) public { require(!accessRequests[msg.sender].exists, "A request has already been made for this address"); - require(members[msg.sender].exists, "This user is already a member of the organization"); + require(!members[msg.sender].exists, "This user is already a member of the organization"); // Creation of a membership request for this "person" accessRequests[msg.sender].firstName = _firstName;