Sha256: dbf60cc323b87ec0e1aac6af545de10bd5e1bf9fc37b71e33be2767e2d05f34d

Contents?: true

Size: 727 Bytes

Versions: 3

Compression:

Stored size: 727 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module ParticipatoryProcesses
    module Admin
      # Controller that allows managing participatory process privte users
      class ParticipatorySpacePrivateUsersController < Decidim::Admin::ApplicationController
        include Concerns::ParticipatoryProcessAdmin
        include Decidim::Admin::Concerns::HasPrivateUsers

        def after_destroy_path
          participatory_space_private_users_path(current_participatory_process)
        end

        def privatable_to
          current_participatory_process
        end

        def authorization_object
          @participatory_space_private_user || ParticipatorySpacePrivateUser
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
decidim-participatory_processes-0.11.2 app/controllers/decidim/participatory_processes/admin/participatory_space_private_users_controller.rb
decidim-participatory_processes-0.11.1 app/controllers/decidim/participatory_processes/admin/participatory_space_private_users_controller.rb
decidim-participatory_processes-0.11.0.pre1 app/controllers/decidim/participatory_processes/admin/participatory_space_private_users_controller.rb