Class: Decidim::Api::ApplicationController

Inherits:
DecidimController
  • Object
show all
Includes:
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


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

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

#permission_scopeObject


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

def permission_scope
  :public
end