Class: LinkedRails::Auth::OtpAttemptPolicy

Inherits:
Object
  • Object
show all
Defined in:
app/policies/linked_rails/auth/otp_attempt_policy.rb

Instance Method Summary collapse

Instance Method Details

#create?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'app/policies/linked_rails/auth/otp_attempt_policy.rb', line 12

def create?
  user_context.guest? && record.active?
end

#show?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/policies/linked_rails/auth/otp_attempt_policy.rb', line 8

def show?
  user_context.guest?
end