check authorization

This commit is contained in:
Stella Rouzi 2014-07-24 22:13:18 +03:00
parent 938abce9d2
commit 723c6aaafc
2 changed files with 6 additions and 5 deletions

View file

@ -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