move revision history of users to be accessed only by site admins

This commit is contained in:
shlok007 2017-08-25 03:04:41 +05:30
parent 16f294f3e8
commit 590c3a91ea
2 changed files with 465 additions and 437 deletions

View file

@ -167,7 +167,6 @@ class AdminAbility
role.resource_type == 'Track' && (track_ids.include? role.resource_id)
end
can [:index, :revert_object, :revert_attribute], PaperTrail::Version, item_type: 'User'
can [:index, :revert_object, :revert_attribute], PaperTrail::Version, conference_id: conf_ids
end