Sha256: 3dce3d440c32bdc99929e24864661efd85b2145388539c347e7cd3a7dde7eb1b

Contents?: true

Size: 381 Bytes

Versions: 3

Compression:

Stored size: 381 Bytes

Contents

module Kadmin
  module Auth
    class User
      attr_accessor :email, :accept, :organization

      def initialize(email, options = {})
        @email = email
        @organization = options[:organization]
        @accept = options[:accept]
      end

      def authorized?(_request)
        return true
      end

      def admin?
        return true
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
kadmin-1.0.5 lib/kadmin/auth/user.rb
kadmin-1.0.4 lib/kadmin/auth/user.rb
kadmin-1.0.3 lib/kadmin/auth/user.rb