From 2bec7253e9b3dea67c525fb0c004f7ed9a082829 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 15 Apr 2015 18:01:29 -0400 Subject: [PATCH] FIX: Trust level comparison must be integer --- lib/new_post_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/new_post_manager.rb b/lib/new_post_manager.rb index fdc7ea071fd..a8c4554fdde 100644 --- a/lib/new_post_manager.rb +++ b/lib/new_post_manager.rb @@ -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