Gab Social. All are welcome.
This commit is contained in:
7
app/policies/account_verification_request_policy.rb
Normal file
7
app/policies/account_verification_request_policy.rb
Normal file
@@ -0,0 +1,7 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class AccountVerificationRequestPolicy < ApplicationPolicy
|
||||
def create?
|
||||
current_account.is_pro and AccountVerificationRequest.where(account: current_account).count == 0
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user