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

8 lines
215 B
Ruby
Raw Normal View History

2019-07-02 08:10:25 +01:00
# frozen_string_literal: true
class AccountVerificationRequestPolicy < ApplicationPolicy
def create?
current_account.is_pro and AccountVerificationRequest.where(account: current_account).count == 0
end
end