From b413c6249d93b6766437b8982a2ffa0e7addd997 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Tue, 3 Feb 2015 22:49:01 +0530 Subject: [PATCH] FIX: allow TL4 user to rebake post --- lib/guardian/post_guardian.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guardian/post_guardian.rb b/lib/guardian/post_guardian.rb index 3d1aa9c6fd0..154f8c8c67d 100644 --- a/lib/guardian/post_guardian.rb +++ b/lib/guardian/post_guardian.rb @@ -176,7 +176,7 @@ module PostGuardian end def can_rebake? - is_staff? + is_staff? || @user.has_trust_level?(TrustLevel[4]) end def can_see_flagged_posts?