mirror of
https://github.com/Retrospring/retrospring.git
synced 2024-11-20 12:19:52 +01:00
Disallow anonymously blocking yourself
This commit is contained in:
parent
a8cb2f695f
commit
9ddcf65928
1 changed files with 4 additions and 3 deletions
|
@ -8,6 +8,7 @@
|
|||
%i.fa.fa-fw.fa-exclamation-triangle
|
||||
= t("voc.report")
|
||||
- if question.anonymous? && !question.generated?
|
||||
- unless question.user == current_user
|
||||
= button_to anonymous_block_path, method: :post, params: { question: question.id }, class: "dropdown-item" do
|
||||
%i.fa.fa-fw.fa-minus-circle
|
||||
= t("voc.block")
|
||||
|
|
Loading…
Reference in a new issue