gab-social/app/policies/account_verification_request_policy.rb
2019-07-02 03:10:25 -04:00

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