users may not not answer their own question

This commit is contained in:
nilsding 2015-01-03 19:08:09 +01:00
parent aec3e1c800
commit 9dc98a3e4e
1 changed files with 1 additions and 1 deletions

View File

@ -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!