CakeDC / Users - Types of users

0

I've implemented the CakeDC / Users authentication plugin and want to add other types of users to my system.

I currently have only the two default permissions: superuser and user.

I'm doing permissions control through the permissions.php file.

I'm also overwriting the layout files, I initially tried to force the form field on the form, but it forces the user type directly into the plugin's controller.

    
asked by anonymous 04.07.2017 / 19:43

1 answer

0

How Steinkel spent this issue: link

Just add this line after the pathEntity in /vendor/cakedc/user/src/Controller/Traits/SimpleCrudTrait.php

$entity->role = $this->request->data('role');

And then configure your form to pass the role field . In my case, I passed this information through a select.

    
05.07.2017 / 19:16