Disallow anonymously blocking yourself
This commit is contained in:
parent
a8cb2f695f
commit
9ddcf65928
|
@ -8,9 +8,10 @@
|
||||||
%i.fa.fa-fw.fa-exclamation-triangle
|
%i.fa.fa-fw.fa-exclamation-triangle
|
||||||
= t("voc.report")
|
= t("voc.report")
|
||||||
- if question.anonymous? && !question.generated?
|
- if question.anonymous? && !question.generated?
|
||||||
= button_to anonymous_block_path, method: :post, params: { question: question.id }, class: "dropdown-item" do
|
- unless question.user == current_user
|
||||||
%i.fa.fa-fw.fa-minus-circle
|
= button_to anonymous_block_path, method: :post, params: { question: question.id }, class: "dropdown-item" do
|
||||||
= t("voc.block")
|
%i.fa.fa-fw.fa-minus-circle
|
||||||
|
= t("voc.block")
|
||||||
- if current_user.mod?
|
- if current_user.mod?
|
||||||
= button_to anonymous_block_path, method: :post, params: { question: question.id, global: true }, class: "dropdown-item" do
|
= button_to anonymous_block_path, method: :post, params: { question: question.id, global: true }, class: "dropdown-item" do
|
||||||
%i.fas.fa-fw.fa-user-slash
|
%i.fas.fa-fw.fa-user-slash
|
||||||
|
|
Loading…
Reference in New Issue