Sha256: 5899efbdd2274a7a19742feb836a53b6ae3168d6cdd654e0022d08b9822143c3

Contents?: true

Size: 663 Bytes

Versions: 5

Compression:

Stored size: 663 Bytes

Contents

# frozen_string_literal: true

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

          def index
            authorize! :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

5 entries across 5 versions & 1 rubygems

Version Path
decidim-verifications-0.11.2 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.11.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.11.0.pre1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.10.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.10.0 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb