diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/member.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index c7583434148..ada779f0583 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -107,6 +107,10 @@ class Member < ApplicationRecord joins(:user).merge(User.search(query)) end + def search_invited(query) + invite.where(['invite_email ILIKE ?', "%#{query}%"]) + end + def filter_by_2fa(value) case value when 'enabled' |