Fixed delivering emails to users.
There was a bug in User#receive_email? Return values are now true or false, not '1' or '0'.
This commit is contained in:
parent
3792069fda
commit
a0760ebfdb
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ class User < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def receive_email?
|
def receive_email?
|
||||||
settings.messages['send_as_email'] == "1" && email.present?
|
settings.messages['send_as_email'] && 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.
|
||||||
|
|
Loading…
Reference in a new issue