app/controllers/decidim/conferences/admin/concerns/conference_admin.rb in decidim-conferences-0.17.2 vs app/controllers/decidim/conferences/admin/concerns/conference_admin.rb in decidim-conferences-0.18.0

- old
+ new

@@ -10,10 +10,15 @@ # into an conference's admin panel. It will override the layout so it shows # the sidebar, preload the conference, etc. module ConferenceAdmin extend ActiveSupport::Concern + RegistersPermissions + .register_permissions(::Decidim::Conferences::Admin::Concerns::ConferenceAdmin, + ::Decidim::Conferences::Permissions, + ::Decidim::Admin::Permissions) + included do include Decidim::Admin::ParticipatorySpaceAdminContext participatory_space_admin_layout helper_method :current_conference @@ -33,13 +38,10 @@ def permissions_context super.merge(current_participatory_space: current_participatory_space) end def permission_class_chain - [ - Decidim::Conferences::Permissions, - Decidim::Admin::Permissions - ] + PermissionsRegistry.chain_for(ConferenceAdmin) end end end end end