mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-19 01:25:54 +00:00
invite orphan vulnerability patch, detailed test case coming in a commit soon
This commit is contained in:
parent
72f0194487
commit
a42f214358
@ -674,8 +674,8 @@ public class Group {
|
|||||||
public void uninvite(GroupInviteTransactionData groupInviteTransactionData) throws DataException {
|
public void uninvite(GroupInviteTransactionData groupInviteTransactionData) throws DataException {
|
||||||
String invitee = groupInviteTransactionData.getInvitee();
|
String invitee = groupInviteTransactionData.getInvitee();
|
||||||
|
|
||||||
// If member exists then they were added when invite matched join request
|
// If member exists and the join request is present then they were added when invite matched join request
|
||||||
if (this.memberExists(invitee)) {
|
if (this.memberExists(invitee) && groupInviteTransactionData.getJoinReference() != null) {
|
||||||
// Rebuild join request using cached reference to transaction that created join request.
|
// Rebuild join request using cached reference to transaction that created join request.
|
||||||
this.rebuildJoinRequest(invitee, groupInviteTransactionData.getJoinReference());
|
this.rebuildJoinRequest(invitee, groupInviteTransactionData.getJoinReference());
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user