# Default implementation of User.  This class is intended to be modified by extensions (ex. spree_auth)
module Spree
  class User < ActiveRecord::Base
    include Core::UserBanners

    attr_accessible :email, :password, :password_confirmation

    has_many :orders

    belongs_to :ship_address, :class_name => Spree::Address
    belongs_to :bill_address, :class_name => Spree::Address

    scope :registered

    def anonymous?
      false
    end

    # Creates an anonymous user
    def self.anonymous!
      create
    end

    def has_spree_role?(role)
      true
    end

    attr_accessor :password
    attr_accessor :password_confirmation
  end
end

# Default implementation of User.  This class is intended to be modified by extensions (ex. spree_auth)
module Spree
  class User < ActiveRecord::Base
    include Core::UserBanners

    attr_accessible :email, :password, :password_confirmation

    has_many :orders

    belongs_to :ship_address, :class_name => Spree::Address
    belongs_to :bill_address, :class_name => Spree::Address

    scope :registered

    def anonymous?
      false
    end

    # Creates an anonymous user
    def self.anonymous!
      create
    end

    attr_accessor :password
    attr_accessor :password_confirmation
  end
end

--- 
+++ 
@@ -21,6 +21,10 @@
       create
     end
 
+    def has_spree_role?(role)
+      true
+    end
+
     attr_accessor :password
     attr_accessor :password_confirmation
   end
Define has_spree_role? dummy method on Spree::User
