8 lines
215 B
Ruby
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
|