Merge 2875f1de7b into ea43b19ef4
This commit is contained in:
commit
49e14431f4
1 changed files with 4 additions and 0 deletions
|
|
@ -216,6 +216,10 @@ class Ability
|
|||
can [:index, :revert_object, :revert_attribute], PaperTrail::Version do |version|
|
||||
version.item_type == 'User' || (conf_ids.include? version.conference_id)
|
||||
end
|
||||
|
||||
cannot [:revert_object, :revert_attribute], PaperTrail::Version do |version|
|
||||
version.item_type == 'User' && version.item.is_admin?
|
||||
end
|
||||
end
|
||||
|
||||
def signed_in_with_cfp_role(user)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue