mirror of
https://github.com/ENSL/ensl.org.git
synced 2025-01-13 13:21:29 +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
|
end
|
||||||
|
|
||||||
def preformat
|
def preformat
|
||||||
self.email = "" if self.email.include?("@ensl.org")
|
self.email = "" if self.email&.include?("@ensl.org")
|
||||||
end
|
end
|
||||||
|
|
||||||
def banned? type = Ban::TYPE_SITE
|
def banned? type = Ban::TYPE_SITE
|
||||||
|
|
Loading…
Reference in a new issue