Sha256: a0ecb0be28d6a11a9727b1bc9ff65ab3d9da9a00ceac3338a67a268497958d7b

Contents?: true

Size: 487 Bytes

Versions: 19

Compression:

Stored size: 487 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Api
    # Base controller for `decidim-api`. All other controllers inherit from this.
    class ApplicationController < ::DecidimController
      skip_before_action :verify_authenticity_token
      include NeedsOrganization
      include NeedsPermission
      include ImpersonateUsers

      def permission_class_chain
        [Decidim::Permissions]
      end

      def permission_scope
        :public
      end
    end
  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
decidim-api-0.17.2 app/controllers/decidim/api/application_controller.rb
decidim-api-0.17.1 app/controllers/decidim/api/application_controller.rb
decidim-api-0.16.1 app/controllers/decidim/api/application_controller.rb
decidim-api-0.17.0 app/controllers/decidim/api/application_controller.rb
decidim-api-0.16.0 app/controllers/decidim/api/application_controller.rb
decidim-api-0.15.2 app/controllers/decidim/api/application_controller.rb
decidim-api-0.15.1 app/controllers/decidim/api/application_controller.rb
decidim-api-0.15.0 app/controllers/decidim/api/application_controller.rb
decidim-api-0.14.4 app/controllers/decidim/api/application_controller.rb
decidim-api-0.14.3 app/controllers/decidim/api/application_controller.rb
decidim-api-0.14.2 app/controllers/decidim/api/application_controller.rb
decidim-api-0.14.1 app/controllers/decidim/api/application_controller.rb
decidim-api-0.13.1 app/controllers/decidim/api/application_controller.rb
decidim-api-0.12.2 app/controllers/decidim/api/application_controller.rb
decidim-api-0.13.0 app/controllers/decidim/api/application_controller.rb
decidim-api-0.12.1 app/controllers/decidim/api/application_controller.rb
decidim-api-0.13.0.pre1 app/controllers/decidim/api/application_controller.rb
decidim-api-0.12.0 app/controllers/decidim/api/application_controller.rb
decidim-api-0.12.0.pre app/controllers/decidim/api/application_controller.rb