Module: Graphql::AccountLockHelper

Instance Method Summary collapse

Instance Method Details

#account_locked?(user) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
7
# File 'app/helpers/graphql/account_lock_helper.rb', line 4

def (user)
  return false unless lockable?
  user.access_locked?
end

#lockable?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/helpers/graphql/account_lock_helper.rb', line 9

def lockable?
  GraphQL::Authentication.configuration.
end