Added checks to suspension to for pro, verified, donor, investor accounts

• Added:
- checks to suspension to for pro, verified, donor, investor accounts
This commit is contained in:
mgabdev
2021-01-23 01:41:35 -05:00
parent 1e5d12497c
commit 3719a6cfd7
3 changed files with 4 additions and 2 deletions

View File

@@ -45,6 +45,7 @@ class SuspendAccountService < BaseService
# @option [Boolean] :destroy Remove the account record instead of suspending
def call(account, **options)
@account = account
return true if @account.is_pro? || @account.is_verified? || @account.is_donor? || @account.is_investor?
@options = options
purge_user!