fixes User#receive_email?

This commit is contained in:
Manuel Wiedenmann 2013-07-18 16:58:04 +02:00
parent dfe1cee4cd
commit c85a7fcc5c

View file

@ -66,7 +66,7 @@ class User < ActiveRecord::Base
end end
def receive_email? def receive_email?
settings['messages.send_as_mail'] == "1" && email.present? settings.messages['send_as_email'] == "1" && email.present?
end end
# Sets the user's password. It will be stored encrypted along with a random salt. # Sets the user's password. It will be stored encrypted along with a random salt.