This commit is contained in:
Sam 2013-03-18 20:54:29 -07:00
parent 0e1174dbe8
commit dd03f44968
1 changed files with 1 additions and 1 deletions

View File

@ -506,7 +506,7 @@ class User < ActiveRecord::Base
def add_trust_level def add_trust_level
# there is a possiblity we did no load trust level column, skip it # there is a possiblity we did no load trust level column, skip it
return unless attributes.key? "trust_level" return unless attribute_present? :trust_level
self.trust_level ||= SiteSetting.default_trust_level self.trust_level ||= SiteSetting.default_trust_level
end end