budanoff / yii2-synch-user
Расширение для синхронизации пользователей ИАС Мониторинг (для подсистем программного комплекса))
Installs: 398
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-04-29 01:32:22 UTC
README
Расширение для синхронизации пользователей ИАС Мониторинг (для подсистем программного комплекса))
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist budanoff/yii2-synch-user:dev-master
to the require section of your composer.json
file.
Usage
update config file web.php:
'modules'=>[ ... 'synchuser' => [ 'class' => 'budanoff\synchuser\Module', 'secret_key' => ''//insert secret key ], ... ],
Make the route public:
'as access' => [ 'class' => '', 'allowActions' => [ ... 'synchuser/*' ] ],
You can customize roles for user. At block 'synchuser' add array like this:
'role' => [ "podved" => "user", "other_podved" => "user", "dep10" => [ "dep10", "user" ] ]
for reload role of user everytime:
'reload_role' => true,