mirror of
https://github.com/discourse/discourse.git
synced 2025-06-05 22:46:01 +08:00
oops
This commit is contained in:
@ -505,8 +505,8 @@ class User < ActiveRecord::Base
|
||||
end
|
||||
|
||||
def add_trust_level
|
||||
# there is a possiblity we did no load trust level column, skip it
|
||||
return unless attribute_present? :trust_level
|
||||
# there is a possiblity we did not load trust level column, skip it
|
||||
return unless has_attribute? :trust_level
|
||||
self.trust_level ||= SiteSetting.default_trust_level
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user