Replace `has_role?` use in action partial with `admin?`
This commit is contained in:
parent
656a9e8a86
commit
cc3934b423
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue