Class: LinkedRails::Auth::OtpAttemptPolicy
- Inherits:
-
Object
- Object
- LinkedRails::Auth::OtpAttemptPolicy
- Defined in:
- app/policies/linked_rails/auth/otp_attempt_policy.rb
Instance Method Summary collapse
Instance Method Details
#create? ⇒ 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
8 9 10 |
# File 'app/policies/linked_rails/auth/otp_attempt_policy.rb', line 8 def show? user_context.guest? end |