Sha256: 0ae6cc47dca6e2f67fb068ce90f020c0d71a040373f5db73e2a37d70396b15a6

Contents?: true

Size: 457 Bytes

Versions: 14

Compression:

Stored size: 457 Bytes

Contents

require 'responders'
require 'raddocs'
require 'swagger/blocks'

require 'workarea'
require 'workarea/admin'

module Workarea
  module Api
    module Admin
      def self.authenticate(email, password)
        user = User.find_for_login(email, password)
        user.try(:api_access?) || user.try(:super_admin?) ? user : nil
      end
    end
  end
end

require 'workarea/api/version'
require 'workarea/api/admin/engine'
require 'workarea/api/admin/swagger'

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
workarea-api-4.5.5 admin/lib/workarea/api/admin.rb
workarea-api-admin-4.5.5 lib/workarea/api/admin.rb
workarea-api-4.5.4 admin/lib/workarea/api/admin.rb
workarea-api-admin-4.5.4 lib/workarea/api/admin.rb
workarea-api-4.5.3 admin/lib/workarea/api/admin.rb
workarea-api-admin-4.5.3 lib/workarea/api/admin.rb
workarea-api-4.5.2 admin/lib/workarea/api/admin.rb
workarea-api-admin-4.5.2 lib/workarea/api/admin.rb
workarea-api-4.5.0 admin/lib/workarea/api/admin.rb
workarea-api-admin-4.5.0 lib/workarea/api/admin.rb
workarea-api-4.4.7 admin/lib/workarea/api/admin.rb
workarea-api-admin-4.4.7 lib/workarea/api/admin.rb
workarea-api-4.4.6 admin/lib/workarea/api/admin.rb
workarea-api-admin-4.4.6 lib/workarea/api/admin.rb