contextualcode/permissions-inheritance-bundle
Composer 安装命令:
composer require contextualcode/permissions-inheritance-bundle
包简介
eZ Platform bundle which allows to inherit user roles in legacy admin.
关键字:
README 文档
README
eZ Platform bundle which allows to inherit user roles in legacy admin.
Installation
- Run
composer require:
$ composer require contextualcode/permissions-inheritance-bundle
- Enable this bundle in
ezpublish/EzPublishKernel.phpfile by adding next line inregisterBundlesmethod:
public function registerBundles()
{
$bundles = array(
...
new ContextualCode\PermissionsInheritanceBundle\ContextualCodePermissionsInheritanceBundle()
);
- Create new custom database tables:
$ cat vendor/contextualcode/permissions-inheritance-bundle/src/ContextualCode/PermissionsInheritanceBundle/ezpublish_legacy/cc_permissions_inheritance/sql/mysql/schema.sql | mysql -u <username -p<password> <database_name>
- Installs legacy extensions:
$ php ezpublish/console ezpublish:legacybundles:install_extensions --relative
- Regenerate eZ Publish Legacy autoloads:
$ php ezpublish/console ezpublish:legacy:script bin/php/ezpgenerateautoloads.php
- Done.
Usage
- Just open role view page in legacy admin. There will be new functionality to inherit the roles.
- Additional code need to be executed to assign inherited roles to the user. You can use custom login handler/event listener or any other way to call that code:
ccRoleInheritance::handleUserInheritedRoles(<user_id>);
统计信息
- 总下载量: 23
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 9
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-only
- 更新时间: 2018-07-20