Added reset of current_user_id.
This commit is contained in:
parent
679e260cde
commit
d5b5b46093
1 changed files with 4 additions and 0 deletions
|
@ -294,6 +294,10 @@ class Channel::EmailParser
|
||||||
# use transaction
|
# use transaction
|
||||||
ActiveRecord::Base.transaction do
|
ActiveRecord::Base.transaction do
|
||||||
|
|
||||||
|
# reset current_user
|
||||||
|
UserInfo.current_user_id = 1
|
||||||
|
|
||||||
|
|
||||||
if mail[ 'x-zammad-customer-login'.to_sym ]
|
if mail[ 'x-zammad-customer-login'.to_sym ]
|
||||||
user = User.where( :login => mail[ 'x-zammad-customer-login'.to_sym ] ).first
|
user = User.where( :login => mail[ 'x-zammad-customer-login'.to_sym ] ).first
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue