FIX: Trust level comparison must be integer
This commit is contained in:
parent
43669f7b24
commit
2bec7253e9
|
@ -21,7 +21,7 @@ class NewPostManager
|
||||||
|
|
||||||
def self.default_handler(manager)
|
def self.default_handler(manager)
|
||||||
if (manager.user.post_count < SiteSetting.approve_post_count) ||
|
if (manager.user.post_count < SiteSetting.approve_post_count) ||
|
||||||
(manager.user.trust_level < SiteSetting.approve_unless_trust_level)
|
(manager.user.trust_level < SiteSetting.approve_unless_trust_level.to_i)
|
||||||
return manager.enqueue('default')
|
return manager.enqueue('default')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue