Class: Decidim::Admin::ApplicationController

Inherits:
DecidimController
  • Object
show all
Includes:
FormFactory, HttpCachingDisabler, LocaleSwitcher, NeedsOrganization, NeedsPermission, NeedsSnippets, PayloadInfo, UseOrganizationTimeZone
Defined in:
decidim-admin/app/controllers/decidim/admin/application_controller.rb

Overview

The main application controller that inherits from Rails.

Direct Known Subclasses

AdminTermsController, AreaTypesController, AreasController, AuthorizationWorkflowsController, BlockUserController, CategoriesController, Components::BaseController, ComponentsController, ConflictsController, DashboardController, ExportsController, HelpSectionsController, ImpersonatableUsersController, ImpersonationsController, ImportsController, LogsController, ManagedUsers::ImpersonationLogsController, ManagedUsers::PromotionsController, MetricsController, ModeratedUsersController, Moderations::ReportsController, ModerationsController, NewsletterTemplatesController, NewslettersController, OfficializationsController, OrganizationAppearanceController, OrganizationController, OrganizationExternalDomainWhitelistController, OrganizationHomepageContentBlocksController, OrganizationHomepageController, ResourcePermissionsController, ScopeTypesController, ScopesController, ShareTokensController, StaticPageTopicsController, StaticPagesController, UserGroupsController, UserGroupsCsvVerificationsController, UsersController, Decidim::Assemblies::Admin::ApplicationController, Decidim::Assemblies::Admin::AssemblyExportsController, Decidim::Assemblies::Admin::ParticipatorySpacePrivateUsersCsvImportsController, Conferences::Admin::ApplicationController, Consultations::Admin::ApplicationController, Initiatives::Admin::ApplicationController, ParticipatoryProcesses::Admin::ApplicationController, ParticipatoryProcesses::Admin::ParticipatoryProcessAttachmentCollectionsController, ParticipatoryProcesses::Admin::ParticipatoryProcessAttachmentsController, ParticipatoryProcesses::Admin::ParticipatoryProcessCopiesController, ParticipatoryProcesses::Admin::ParticipatoryProcessExportsController, ParticipatoryProcesses::Admin::ParticipatoryProcessPublicationsController, ParticipatoryProcesses::Admin::ParticipatoryProcessStepActivationsController, ParticipatoryProcesses::Admin::ParticipatoryProcessStepOrderingController, ParticipatoryProcesses::Admin::ParticipatoryProcessStepsController, ParticipatoryProcesses::Admin::ParticipatoryProcessUserRolesController, ParticipatoryProcesses::Admin::ParticipatorySpacePrivateUsersController, ParticipatoryProcesses::Admin::ParticipatorySpacePrivateUsersCsvImportsController, Templates::Admin::ApplicationController, Verifications::Admin::VerificationsController, Verifications::CsvCensus::Admin::CensusController, Verifications::IdDocuments::Admin::ConfigController, Verifications::IdDocuments::Admin::ConfirmationsController, Verifications::IdDocuments::Admin::OfflineConfirmationsController, Verifications::IdDocuments::Admin::PendingAuthorizationsController, Verifications::IdDocuments::Admin::RejectionsController, Verifications::PostalLetter::Admin::PendingAuthorizationsController, Verifications::PostalLetter::Admin::PostagesController, Votings::Admin::ApplicationController, Votings::Admin::VotingAttachmentCollectionsController, Votings::Admin::VotingAttachmentsController

Instance Method Summary collapse

Methods included from HttpCachingDisabler

#disable_http_caching

Methods included from NeedsSnippets

#snippets

Methods included from RegistersPermissions

register_permissions

Methods included from NeedsOrganization

enhance_controller, extended, included

Instance Method Details

#permission_class_chainObject


46
47
48
# File 'decidim-admin/app/controllers/decidim/admin/application_controller.rb', line 46

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

#permission_scopeObject


50
51
52
# File 'decidim-admin/app/controllers/decidim/admin/application_controller.rb', line 50

def permission_scope
  :admin
end

#user_has_no_permission_pathObject


38
39
40
# File 'decidim-admin/app/controllers/decidim/admin/application_controller.rb', line 38

def user_has_no_permission_path
  decidim_admin.root_path
end

#user_not_authorized_pathObject


42
43
44
# File 'decidim-admin/app/controllers/decidim/admin/application_controller.rb', line 42

def user_not_authorized_path
  decidim_admin.root_path
end