2017 © Pedro Peláez
 

library niceaccess

Tools for nice work with access rights

image

bitrix-expert/niceaccess

Tools for nice work with access rights

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 8 Versions
  • 7 % Grown

The README.md

Niceaccess

Build Status Latest Stable Version Total Downloads License, (*1)

.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.)., (*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";
?>

Tools for nice work with access rights

Class \Bex\Niceaccess\AccessManager implements API of checking access of current user., (*5)

Installation

composer require bitrix-expert/niceaccess

Requirements

  • PHP >= 5.4
  • Bitrix CMS >= 15.0.2

The Versions

20/08 2016

dev-master

9999999-dev

Tools for nice work with access rights

  Sources   Download

MIT

The Requires

 

bitrix access

20/08 2016

0.1.0

0.1.0.0

Tools for nice work with access rights

  Sources   Download

MIT

The Requires

 

bitrix access

08/01 2016

0.0.5

0.0.5.0

  Sources   Download

MIT

The Requires

 

bitrix access

04/12 2015

0.0.4

0.0.4.0

  Sources   Download

MIT

The Requires

 

bitrix access

24/11 2015

0.0.3

0.0.3.0

  Sources   Download

MIT

The Requires

 

bitrix access

24/11 2015

0.0.2

0.0.2.0

  Sources   Download

MIT

The Requires

 

bitrix access

24/11 2015

0.0.1

0.0.1.0

  Sources   Download

MIT

The Requires

 

bitrix access

24/11 2015

0.0.1-RC

0.0.1.0-RC

  Sources   Download

MIT

The Requires

 

bitrix access