From aa26f9b2adbbf3d6f1edb28f3025c624094f1086 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 12 Sep 2013 11:26:59 +1000 Subject: [PATCH] I need to figure out how to make a .try variant that does not call respond_to. --- app/models/topic_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/topic_list.rb b/app/models/topic_list.rb index 21370594a20..0d8ed9ca085 100644 --- a/app/models/topic_list.rb +++ b/app/models/topic_list.rb @@ -53,7 +53,7 @@ class TopicList def has_rank_details? # Only moderators can see rank details - return false unless @current_user.try(:staff?) + return false unless @current_user && @current_user.staff? # Only show them on 'Hot' return @filter == :hot