Module: Graphql::AccountLockHelper
- Included in:
- AuthHelper, Mutations::Auth::ValidateToken
- Defined in:
- app/helpers/graphql/account_lock_helper.rb
Instance Method Summary collapse
Instance Method Details
#account_locked?(user) ⇒ Boolean
3 4 5 6 |
# File 'app/helpers/graphql/account_lock_helper.rb', line 3 def account_locked?(user) return false unless GraphQL::Auth.configuration.allow_lock_account user.access_locked? end |