Sha256: b8d699b771e463f656fd42170619c829187452adf7007e8c0b57a4f3885eb0df

Contents?: true

Size: 787 Bytes

Versions: 10

Compression:

Stored size: 787 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Verifications
    module PostalLetter
      module Admin
        class PendingAuthorizationsController < Decidim::Admin::ApplicationController
          layout "decidim/admin/users"

          include Decidim::Admin::WorkflowsBreadcrumb

          add_breadcrumb_item_from_menu :workflows_menu

          def index
            enforce_permission_to :index, :authorization

            @pending_authorizations = AuthorizationPresenter.for_collection(
              pending_authorizations
            )
          end

          private

          def pending_authorizations
            Authorizations.new(organization: current_organization, name: "postal_letter", granted: false)
          end
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
decidim-verifications-0.29.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.28.4 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.29.0 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.28.3 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.29.0.rc4 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.29.0.rc3 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.29.0.rc2 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.29.0.rc1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.28.2 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.28.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb