FIX: Trust level comparison must be integer

This commit is contained in:
Robin Ward 2015-04-15 18:01:29 -04:00
parent 43669f7b24
commit 2bec7253e9
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ class NewPostManager
def self.default_handler(manager)
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')
end
end