定制 bamboo/switch-user-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bamboo/switch-user-bundle

Composer 安装命令:

composer require bamboo/switch-user-bundle

包简介

Switch user bundle for eZ Publish 5, eZ Platform 1, eZ Platform 2

README 文档

README

License: GPL v2

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.

统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2016-11-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固