mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Prevent error when primary email is missing (#11446)
This commit is contained in:
@@ -1240,7 +1240,7 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def email
|
||||
primary_email.email
|
||||
primary_email&.email
|
||||
end
|
||||
|
||||
def email=(new_email)
|
||||
|
||||
Reference in New Issue
Block a user