o2web/graphql-auth

View on GitHub
app/helpers/graphql/account_lock_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module Graphql
  module AccountLockHelper

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

    def lockable?
      GraphQL::Auth.configuration.allow_lock_account
    end

  end
end