FIX: Support for single use invite links (#11719)

The "invite link" checked if the number of uses was greater than 1. This
is not always true as single use invite links are perfectly valid.
This commit is contained in:
Bianca Nenciu
2021-01-20 10:50:02 +02:00
committed by GitHub
parent 3d7bb15be8
commit 15da528870
4 changed files with 9 additions and 4 deletions

View File

@ -60,7 +60,7 @@ class Invite < ActiveRecord::Base
end
def is_invite_link?
max_redemptions_allowed > 1
email.blank?
end
def redeemed?