Download the PHP package bamboo/switch-user-bundle without Composer
On this page you can find all versions of the php package bamboo/switch-user-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bamboo/switch-user-bundle
More information about bamboo/switch-user-bundle
Files in bamboo/switch-user-bundle
Package switch-user-bundle
Short Description Switch user bundle for eZ Publish 5, eZ Platform 1, eZ Platform 2
License GPL-2.0-or-later
Informations about the package switch-user-bundle
BambooSwitchUserBundle
Summary
User switching for eZ Publish 5.4, eZ Platform 1.x eZ Platform 2.x.
Copyright
Copyright (C) 2016-2018 Bamboo Data Ltd
License
Licensed under GNU General Public License 2.0
Requirements
Requires eZ Publish 5.4 or above.
Installation
Install using composer:
composer require bamboo/switch-user-bundle
Edit app/EzPublishKernel.php
or ezpublish/EzPublishKernel.php
and add the following
to the list of bundles in registerBundles()
:
new Bamboo\SwitchUserBundle\BambooSwitchUserBundle(),
Edit app/config/routing.php
or ezpublish/config/routing.php
and add the following:
bamboo_switch_user:
resource: "@BambooSwitchUserBundle/Resources/config/routing.yml"
Configuration
By default, switching is allowed to any user not in the 'Administrator users' user group.
To change this configuration, add a block to app/config/config.yml
or ezpublish/config/config.yml
.
For example:
bamboo_switch_user:
groups:
deny: []
allow: [ 128 ]
This will only allow switching to users in user group with ID 128.
Usage
Decide which roles will have the ability to switch user account and in the admin
interface add the switchuser/manage
policy to them. If only the
'Administrator users' user group needs the ability then you can skip this step.
Users with this policy will be able to switch to any permitted user using the path:
/switch-user/{username}
where {username}
is the user's login or:
/switch-user/id/{id}
where {id}
is the ID of the user.