app/controllers/decidim/admin/feature_permissions_controller.rb in decidim-admin-0.0.5 vs app/controllers/decidim/admin/feature_permissions_controller.rb in decidim-admin-0.0.6
- old
+ new
@@ -1,11 +1,11 @@
# frozen_string_literal: true
require_dependency "decidim/admin/application_controller"
module Decidim
module Admin
- # Controller that allows managing all the Admins.
+ # Controller that allows managing feature permissions.
#
class FeaturePermissionsController < ApplicationController
include Concerns::ParticipatoryProcessAdmin
helper_method :authorizations, :feature
@@ -46,10 +46,10 @@
result.update(action => form)
end
end
def authorizations
- Decidim.authorization_handlers.map(&:handler_name)
+ current_organization.available_authorizations.map(&:constantize).map(&:handler_name)
end
def feature
@feature ||= participatory_process.features.find(params[:feature_id])
end