Sha256: 128a3a7b7a43e90f37bccade1c10307c6216a2933ad1f70179b63b93517a8aa9

Contents?: true

Size: 708 Bytes

Versions: 14

Compression:

Stored size: 708 Bytes

Contents

# frozen_string_literal: true

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

          def index
            enforce_permission_to :index, :authorization

            @pending_authorizations = pending_authorizations
          end

          private

          def pending_authorizations
            Authorizations
              .new(organization: current_organization, name: "id_documents", granted: false)
              .query
              .where("verification_metadata->'rejected' IS NULL")
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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