check authorization
This commit is contained in:
parent
938abce9d2
commit
723c6aaafc
2 changed files with 6 additions and 5 deletions
|
|
@ -1,3 +1,6 @@
|
|||
- if can? :update, @user
|
||||
.pull-right
|
||||
= link_to "Edit", edit_admin_user_path(@user), class: 'btn btn-primary'
|
||||
%table.table
|
||||
- @show_attributes.each do |attr|
|
||||
%tr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue