mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-02 10:09:51 -04:00
oops
This commit is contained in:
parent
503520d885
commit
1cd26a7dcf
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue