From 9dc98a3e4eb148382cb66cffd3d3ebcf3478ef08 Mon Sep 17 00:00:00 2001 From: nilsding Date: Sat, 3 Jan 2015 19:08:09 +0100 Subject: [PATCH] users may not not answer their own question --- app/views/question/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/question/show.html.haml b/app/views/question/show.html.haml index 92ade27f..eede0c3e 100644 --- a/app/views/question/show.html.haml +++ b/app/views/question/show.html.haml @@ -17,7 +17,7 @@ - @answers.each do |a| = render 'shared/answerbox', a: a, show_question: false - - if user_signed_in? and !current_user.answered? @question + - if user_signed_in? and !current_user.answered? @question and current_user != @question.user .panel.panel-default#q-answer-box .panel-heading %h3.panel-title This question was not in your inbox? Answer it here!