Skip to content

Commit

Permalink
Solve KYC
Browse files Browse the repository at this point in the history
  • Loading branch information
zikahell committed Jun 29, 2024
1 parent 0e96358 commit 0a4756a
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions contracts/KYC.sol
Original file line number Diff line number Diff line change
Expand Up @@ -215,21 +215,14 @@ contract KYC is Initializable, OwnableUpgradeable, UUPSUpgradeable {

function editRole(uint256 cid, uint256 _id, uint8 role) public {
OnlyAdmin(cid);
if (role == 1 && people[_id].role == Roles(0) ) {
if (role == 1 && people[_id].role == Roles(0)) {
removeIdFromArray(users, _id);
}
else if (role == 0 && people[_id].role == Roles(1) ) {
} else if (role == 0 && people[_id].role == Roles(1)) {
users.push(_id);
}
people[_id].role = Roles(role);
Permissions _permission = grantPermission(Roles(role));
people[_id].permission = _permission;
<<<<<<< HEAD
if (role == 1) {
removeIdFromArray(users, _id);
}
=======
>>>>>>> 2dc8d0c59980c1653e990732e5e952b190d54d5a
}

function EditPhone(uint256 cid, uint256 _id, string memory phone) public {
Expand Down

0 comments on commit 0a4756a

Please sign in to comment.