mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Allow cfp team members to revert changes to events through event#history-content
This commit is contained in:
parent
0a3466ca7c
commit
da1c8fc691
1 changed files with 4 additions and 0 deletions
|
|
@ -210,6 +210,10 @@ class Ability
|
|||
role.resource_type == 'Conference' && role.name == 'cfp' &&
|
||||
(Conference.with_role(:cfp, user).pluck(:id).include? role.resource_id)
|
||||
end
|
||||
|
||||
can [:index, :revert_object, :revert_attribute], PaperTrail::Version do |version|
|
||||
version.item_type == 'Event' && (conf_ids_for_cfp.include? version.conference_id)
|
||||
end
|
||||
end
|
||||
|
||||
def signed_in_with_info_desk_role(user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue