Class: Decidim::Admin::ApplicationController

Inherits:
DecidimController
  • Object
show all
Includes:
NeedsAdminTosAccepted, DisableRedirectionToExternalHost, FormFactory, HttpCachingDisabler, LocaleSwitcher, NeedsOrganization, NeedsPasswordChange, NeedsPermission, 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



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

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

#permission_scopeObject



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

def permission_scope
  :admin
end

#user_has_no_permission_pathObject



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

def user_has_no_permission_path
  decidim_admin.root_path
end

#user_not_authorized_pathObject



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

def user_not_authorized_path
  decidim_admin.root_path
end