Grant permission to read, revert organization_admin version

Without this permission, organization administrators can't see the
history of changes to the organization administrator role on the
Revision History screen.
This commit is contained in:
Andrew Kvalheim 2020-04-03 09:47:31 -07:00 committed by Andrew Kvalheim
parent 4dd15d6120
commit 150bbef61f

View file

@ -99,6 +99,8 @@ class AdminAbility
can :manage, Conference, organization_id: org_ids_for_organization_admin
can [:index, :show], Role
can [:index, :revert_object, :revert_attribute], PaperTrail::Version, organization_id: org_ids_for_organization_admin
signed_in_with_organizer_role(user, conf_ids_for_organization_admin)
end