Added reset of current_user_id.

This commit is contained in:
Martin Edenhofer 2013-04-20 12:14:27 +02:00
parent 679e260cde
commit d5b5b46093

View file

@ -294,6 +294,10 @@ class Channel::EmailParser
# use transaction
ActiveRecord::Base.transaction do
# reset current_user
UserInfo.current_user_id = 1
if mail[ 'x-zammad-customer-login'.to_sym ]
user = User.where( :login => mail[ 'x-zammad-customer-login'.to_sym ] ).first
end