diff --git a/app/views/actions/_answer.haml b/app/views/actions/_answer.haml index 4a0ecf40..aea15c9b 100644 --- a/app/views/actions/_answer.haml +++ b/app/views/actions/_answer.haml @@ -16,7 +16,7 @@ %a.dropdown-item{ href: "#", data: { a_id: answer.id, action: "ab-report" } } %i.fa.fa-fw.fa-exclamation-triangle = t("voc.report") - - if current_user.has_role? :administrator + - if current_user.admin? %a.dropdown-item{ href: rails_admin_path_for_resource(answer), target: "_blank" } %i.fa.fa-fw.fa-gears = t("voc.view_in_rails_admin")