Sha256: 3e79e1444d7bb37ab2b8de3eb4dac1e4b139187c87bb97d134f5af4e3744d6ac

Contents?: true

Size: 660 Bytes

Versions: 9

Compression:

Stored size: 660 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
            authorize! :index, Authorization

            @pending_authorizations = pending_authorizations
          end

          private

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

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
decidim-verifications-0.9.3 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.9.2 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.9.1 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.9.0 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.8.4 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.8.3 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.8.2 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.8.1 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb
decidim-verifications-0.8.0 app/controllers/decidim/verifications/id_documents/admin/pending_authorizations_controller.rb