Fix error in user.rb preformat

This commit is contained in:
Ari Timonen 2020-04-18 08:01:32 +03:00
parent 31372ce3c8
commit 703f4c83d2

View file

@ -259,7 +259,7 @@ class User < ActiveRecord::Base
end
def preformat
self.email = "" if self.email.include?("@ensl.org")
self.email = "" if self.email&.include?("@ensl.org")
end
def banned? type = Ban::TYPE_SITE