Class: Decidim::Assemblies::Admin::AssemblyUserRolesController

Inherits:
Decidim::Admin::ParticipatorySpace::UserRoleController show all
Includes:
Concerns::AssemblyAdmin
Defined in:
decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb

Overview

Controller that allows managing assembly user roles.

Instance Method Summary collapse

Methods inherited from Decidim::Admin::ParticipatorySpace::UserRoleController

#create, #destroy, #edit, #index, #new, #resend_invitation, #update

Methods inherited from Decidim::Admin::ApplicationController

#permission_class_chain, #permission_scope, #user_has_no_permission_path, #user_not_authorized_path

Methods included from Headers::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

#authorization_scopeObject



11
# File 'decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb', line 11

def authorization_scope = :assembly_user_role

#eventObject



21
# File 'decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb', line 21

def event = "decidim.events.assembly.role_assigned"

#event_classObject



23
# File 'decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb', line 23

def event_class = Decidim::RoleAssignedToAssemblyEvent

#i18n_scopeObject



17
# File 'decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb', line 17

def i18n_scope = "decidim.admin.assembly_user_roles"

#resource_formObject



13
# File 'decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb', line 13

def resource_form = form(AssemblyUserRoleForm)

#role_classObject



19
# File 'decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb', line 19

def role_class = Decidim::AssemblyUserRole

#space_index_pathObject



15
# File 'decidim-assemblies/app/controllers/decidim/assemblies/admin/assembly_user_roles_controller.rb', line 15

def space_index_path = assembly_user_roles_path(current_participatory_space)