mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 05:10:59 +00:00
Fix error in user.rb preformat
This commit is contained in:
parent
31372ce3c8
commit
703f4c83d2
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue