Dominus77 / yii2-advanced-start

Yii2 Start Project Advanced Template
https://dominus77.github.io/yii2-advanced-start/
MIT License
23 stars 12 forks source link

Role Based Access Control Asign for create new user in backend UI #9

Closed polinwei closed 6 years ago

polinwei commented 6 years ago

May you add the create new user in backend UI: Role Based Access Control Asign ?

Dominus77 commented 6 years ago

Yes, and what is the problem?

Dominus77 commented 6 years ago

In the latter, the web interface RBAC https://github.com/Dominus77/yii2-advanced-start/tree/master/modules/rbac

polinwei commented 6 years ago

Assign rights does not have the create action

Dominus77 commented 6 years ago

The binding of the role to the user occurs here: https://github.com/Dominus77/yii2-advanced-start/blob/3a9e5ac0b5d0b527aa3f2ecb7ea77f84419fd0cd/modules/rbac/controllers/backend/AssignController.php#L95

Dominus77 commented 6 years ago

Download my latest version, there are bugs fixed and there are additions and improvements

Dominus77 commented 6 years ago

New roles are created here: https://github.com/Dominus77/yii2-advanced-start/blob/3a9e5ac0b5d0b527aa3f2ecb7ea77f84419fd0cd/modules/rbac/controllers/backend/RolesController.php#L88

polinwei commented 6 years ago

May I using composer update Dominus77/yii2-advanced-start ?

Dominus77 commented 6 years ago

Try it, but it's better to put it again. As it is written in README.md

composer global require "fxp/composer-asset-plugin:^1.2.0"
composer create-project --prefer-dist --stability=dev dominus77/yii2-advanced-start advanced-project

Then move your files to a new project, the structure and the principle remained

polinwei commented 6 years ago

Do you plan save the Layout Options status in session or table?

Dominus77 commented 6 years ago

what do you mean?

polinwei commented 6 years ago

When I refresh backend page , The AdminLTE layout back to normal.

Dominus77 commented 6 years ago

I do not plan yet, but you can implement this functionality yourself)

polinwei commented 6 years ago

Ok. thanks!!