app/models/decidim/admin/abilities/base.rb in decidim-admin-0.0.2 vs app/models/decidim/admin/abilities/base.rb in decidim-admin-0.0.3
- old
+ new
@@ -7,12 +7,12 @@
# class and other engine-only abilities, like the
# `ParticipatoryProcessAdmin` ability class.
class Base
include CanCan::Ability
- def initialize(user)
- merge ::Decidim::Ability.new(user)
- merge ParticipatoryProcessAdmin.new(user)
+ def initialize(user, context)
+ merge ::Decidim::Ability.new(user, context)
+ merge ParticipatoryProcessAdmin.new(user, context)
end
end
end
end
end