mirror of
https://github.com/discourse/discourse.git
synced 2025-06-07 17:47:18 +08:00
oops
This commit is contained in:
@ -505,8 +505,8 @@ class User < ActiveRecord::Base
|
|||||||
end
|
end
|
||||||
|
|
||||||
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 not load trust level column, skip it
|
||||||
return unless attribute_present? :trust_level
|
return unless has_attribute? :trust_level
|
||||||
self.trust_level ||= SiteSetting.default_trust_level
|
self.trust_level ||= SiteSetting.default_trust_level
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user