bitrix-expert/niceaccess
Composer 安装命令:
composer require bitrix-expert/niceaccess
包简介
Tools for nice work with access rights
README 文档
README
.access.php
Bitrix writes .access.php (files of access) the numerical group IDs of users, which prevents its migration from site
to site where different databases (dev zone, test, production, etc.).
Niceaccess solves this problem by substitution of IDs to character codes user groups. The character code is recorded
in the form of an API call Bex\Tools: \Bex\Tools\GroupTools::find('code')->id(). Because of this, your files
.access.php will be relevant to with any database.
Example file .access.php:
<? $PERM["admin"][\Bex\Tools\Group\GroupTools::find('CONTROL_PANEL_USERS', true)->id()]="R"; $PERM["admin"]["*"]="D"; ?>
Tools for nice work with access rights
Class \Bex\Niceaccess\AccessManager implements API of checking access of current user.
Installation
composer require bitrix-expert/niceaccess
Requirements
- PHP >= 5.4
- Bitrix CMS >= 15.0.2
统计信息
- 总下载量: 9.5k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-11-22