定制 contextualcode/permissions-inheritance-bundle 二次开发

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

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

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.php file by adding next line in registerBundles method:
    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

  1. Just open role view page in legacy admin. There will be new functionality to inherit the roles.
  2. 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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-only
  • 更新时间: 2018-07-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固