gab-social/app/policies/account_verification_reques...

8 lines
215 B
Ruby

# frozen_string_literal: true
class AccountVerificationRequestPolicy < ApplicationPolicy
def create?
current_account.is_pro and AccountVerificationRequest.where(account: current_account).count == 0
end
end