myzero1 / yii2-authz
Export big data through data streams
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
    v1.1.4
    2024-02-05 09:14 UTC
Requires
- php: >=5.6.0
- myzero1/yii2-ztree: 1.0.3
- yiisoft/yii2: ~2.0.14
This package is not auto-updated.
Last update: 2025-09-01 16:46:10 UTC
README
介绍
{以下是 Gitee 平台说明,您可以替换此简介 Gitee 是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台 无论是个人、团队、或是企业,都能够用 Gitee 实现代码托管、项目管理、协作开发。企业项目请看 https://gitee.com/enterprises}
软件架构
软件架构说明
安装教程
- xxxx
- xxxx
- xxxx
使用说明
- xxxx
- xxxx
- xxxx
参与贡献
- Fork 本仓库
- 新建 Feat_xxx 分支
- 提交代码
- 新建 Pull Request
特技
- 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
- Gitee 官方博客 blog.gitee.com
- 你可以 https://gitee.com/explore 这个地址来了解 Gitee 上的优秀开源项目
- GVP 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目
- Gitee 官方提供的使用手册 https://gitee.com/help
- Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 https://gitee.com/gitee-stars/
    'modules' => [
        ...
        'authz' => [ // you should seting it,when you want to use module.
            'class' => \myzero1\authz\authz\Authz::class,
        ],
        ...
    ],
    'as access' => [  
        'class' => myzero1\authz\filters\AccessControl::class,
        'user'=> [ // 接管components中的user
            'identityClass' => 'common\models\User',
            'enableAutoLogin' => true,
            'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
        ],
        'userTableName' => 'user',
        'roleTableName' => 'z1role',
        'roleIdFieldName' => 'role_id', // role id field name in user table
        'controlType' => 'login', // everyone login rbac,default rbac
        'superadminId' => '1',
        'excludeUri' => [
            '/site/login:*',
            '/site/error:GET',
        ],
        'loginedExcludeUri' => [
            '/site/logout:*',
            '/site/index:*',
        ],
        'superadminUri' => [
            '/rbacp/default/migrate-up:*',
            '/rbacp/default/migrate-down:*',
        ],
        // 'permissionCallback' => [
        //     '1' => ['pId' => '1','name' => '全部','value' => '',],
        //     '11' => ['pId' => '1','name' => '用户管理','value' => '',],
        //     '1101' => ['pId' => '11','name' => '用户管理-列表','value' => '/user:GET',],
        // ],
        // 'permissionCallback' => function(){
        //     return [];
        // },
        // 'denyCallback' => function(){
        //     \Yii::$app->response->statusCode = 403;
        //     \Yii::$app->response->send();
        // },
    ],  
    'components' => [