mirror of
https://github.com/Qortal/qortal.git
synced 2025-04-14 23:35: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 {
|
||||
String invitee = groupInviteTransactionData.getInvitee();
|
||||
|
||||
// If member exists then they were added when invite matched join request
|
||||
if (this.memberExists(invitee)) {
|
||||
// If member exists and the join request is present then they were added when invite matched join request
|
||||
if (this.memberExists(invitee) && groupInviteTransactionData.getJoinReference() != null) {
|
||||
// Rebuild join request using cached reference to transaction that created join request.
|
||||
this.rebuildJoinRequest(invitee, groupInviteTransactionData.getJoinReference());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user