app/controllers/decidim/conferences/application_controller.rb in decidim-conferences-0.17.2 vs app/controllers/decidim/conferences/application_controller.rb in decidim-conferences-0.18.0

- old
+ new

@@ -8,23 +8,24 @@ helper Decidim::ResourceHelper helper Decidim::Conferences::ConferenceHelper include NeedsPermission + register_permissions(::Decidim::Conferences::ApplicationController, + Decidim::Conferences::Permissions, + Decidim::Admin::Permissions, + Decidim::Permissions) + private def permissions_context super.merge( current_participatory_space: try(:current_participatory_space) ) end def permission_class_chain - [ - Decidim::Conferences::Permissions, - Decidim::Admin::Permissions, - Decidim::Permissions - ] + ::Decidim.permissions_registry.chain_for(::Decidim::Conferences::ApplicationController) end def permission_scope :public end