dev-master
9999999-devTools for nice work with access rights
MIT
The Requires
- bitrix-expert/tools 1.*
- php >=5.4
bitrix access
0.1.0
0.1.0.0Tools for nice work with access rights
MIT
The Requires
- php >=5.4
- bitrix-expert/tools 1.*
bitrix access
Wallogit.com
2017 © Pedro Peláez
Tools for nice work with access rights
.access.phpBitrix 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.)., (*2)
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., (*3)
Example file .access.php:, (*4)
<?
$PERM["admin"][\Bex\Tools\Group\GroupTools::find('CONTROL_PANEL_USERS', true)->id()]="R";
$PERM["admin"]["*"]="D";
?>
Class \Bex\Niceaccess\AccessManager implements API of checking access of current user., (*5)
composer require bitrix-expert/niceaccess
Tools for nice work with access rights
MIT
bitrix access
Tools for nice work with access rights
MIT
bitrix access