mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-15 18:39:58 +01:00
users may not not answer their own question
This commit is contained in:
parent
aec3e1c800
commit
9dc98a3e4e
1 changed files with 1 additions and 1 deletions
|
@ -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!
|
||||
|
|
Loading…
Reference in a new issue