Skip to content

Commit

Permalink
Grant permission to read, revert organization_admin version
Browse files Browse the repository at this point in the history
Without this permission, organization administrators can't see the
history of changes to the organization administrator role on the
Revision History screen.
  • Loading branch information
AndrewKvalheim committed Jun 18, 2021
1 parent 273a20f commit 5354bf6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/admin_ability.rb
Original file line number Diff line number Diff line change
@@ -99,6 +99,8 @@ def signed_in_with_organization_admin_role(user)
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

0 comments on commit 5354bf6

Please sign in to comment.