Class: Decidim::Admin::ApplicationController
- Inherits:
-
DecidimController
- Object
- DecidimController
- Decidim::Admin::ApplicationController
show all
- Includes:
- ActiveStorage::SetCurrent, Concerns::HasBreadcrumbItems, NeedsAdminTosAccepted, DisableRedirectionToExternalHost, FormFactory, Headers::ContentSecurityPolicy, Headers::HttpCachingDisabler, LocaleSwitcher, NeedsOrganization, NeedsPasswordChange, NeedsPermission, NeedsRtlDirection, NeedsSnippets, PayloadInfo, UseOrganizationTimeZone
- Defined in:
- 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, OrganizationExternalDomainAllowlistController, OrganizationHomepageContentBlocksController, OrganizationHomepageController, ParticipatorySpace::UserRoleController, RemindersController, ResourcePermissionsController, ScopeTypesController, ScopesController, ShareTokensController, SpacePublicationsController, StaticPageContentBlocksController, StaticPageTopicsController, StaticPagesController, UserGroupsController, UserGroupsCsvVerificationsController, UsersController
Instance Method Summary
collapse
Instance Method Details
#permission_class_chain ⇒ Object
#permission_scope ⇒ Object
60
61
62
|
# File 'app/controllers/decidim/admin/application_controller.rb', line 60
def permission_scope
:admin
end
|
#user_has_no_permission_path ⇒ Object
48
49
50
|
# File 'app/controllers/decidim/admin/application_controller.rb', line 48
def user_has_no_permission_path
decidim_admin.root_path
end
|
#user_not_authorized_path ⇒ Object
52
53
54
|
# File 'app/controllers/decidim/admin/application_controller.rb', line 52
def user_not_authorized_path
decidim_admin.root_path
end
|