Allow other roles to view revision_history only with the versions they have access

This commit is contained in:
Nishanth Vijayan 2016-08-17 05:05:46 +05:30
parent 51d569794f
commit 3a3d01150a
7 changed files with 16 additions and 9 deletions

View file

@ -44,7 +44,7 @@
= link_to(admin_users_path) do
%span.fa.fa-user
Users
- if can? :index, PaperTrail::Version.new(item_type: 'User')
- if can? :index, PaperTrail::Version
%li
= link_to(admin_revision_history_path) do
%span.fa.fa-history