Class: Decidim::Api::ApplicationController

Inherits:
DecidimController
  • Object
show all
Includes:
DisableRedirectionToExternalHost, ForceAuthentication, ImpersonateUsers, NeedsOrganization, NeedsPermission, UseOrganizationTimeZone
Defined in:
decidim-api/app/controllers/decidim/api/application_controller.rb

Overview

Base controller for ‘decidim-api`. All other controllers inherit from this.

Instance Method Summary collapse

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#permission_class_chainObject



18
19
20
# File 'decidim-api/app/controllers/decidim/api/application_controller.rb', line 18

def permission_class_chain
  ::Decidim.permissions_registry.chain_for(::Decidim::Api::ApplicationController)
end

#permission_scopeObject



22
23
24
# File 'decidim-api/app/controllers/decidim/api/application_controller.rb', line 22

def permission_scope
  :public
end