mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-01-31 14:59:08 +01:00
Replace has_role?
use in action partial with admin?
This commit is contained in:
parent
656a9e8a86
commit
cc3934b423
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue