Allow other roles to view revision_history only with the versions they have access
This commit is contained in:
parent
51d569794f
commit
3a3d01150a
7 changed files with 16 additions and 9 deletions
|
|
@ -27,7 +27,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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue