Class: Decidim::Admin::ApplicationController

Inherits:
DecidimController
  • Object
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.

Instance Method Summary collapse

Instance Method Details

#permission_class_chainObject



56
57
58
# File 'app/controllers/decidim/admin/application_controller.rb', line 56

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

#permission_scopeObject



60
61
62
# File 'app/controllers/decidim/admin/application_controller.rb', line 60

def permission_scope
  :admin
end

#user_has_no_permission_pathObject



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_pathObject



52
53
54
# File 'app/controllers/decidim/admin/application_controller.rb', line 52

def user_not_authorized_path
  decidim_admin.root_path
end