app/models/decidim/admin/abilities/base.rb in decidim-admin-0.0.3 vs app/models/decidim/admin/abilities/base.rb in decidim-admin-0.0.5
- old
+ new
@@ -10,9 +10,13 @@
include CanCan::Ability
def initialize(user, context)
merge ::Decidim::Ability.new(user, context)
merge ParticipatoryProcessAdmin.new(user, context)
+
+ Decidim.admin_abilities.each do |ability|
+ merge ability.constantize.new(user, context)
+ end
end
end
end
end
end