Sha256: fbc78e4aabe0afbed72320ea707bcabaf2abe34d4c778f87fc1b6d773f3b1e8b

Contents?: true

Size: 675 Bytes

Versions: 75

Compression:

Stored size: 675 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
            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

75 entries across 75 versions & 1 rubygems

Version Path
decidim-verifications-0.16.0 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.15.2 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.15.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.15.0 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.14.4 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.14.3 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.14.2 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.14.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.13.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.12.2 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.13.0 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.12.1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.13.0.pre1 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.12.0 app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb
decidim-verifications-0.12.0.pre app/controllers/decidim/verifications/postal_letter/admin/pending_authorizations_controller.rb