Cakedc/Users - Types of users

Asked

Viewed 52 times

0

I have deployed the Cakedc/Users authentication plugin and want to add other types of users to my system.

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

I am controlling permissions through the Permissions.php file.

I am also overwriting the layout files, I initially tried to force the field to scroll in the form, but it forces the type of user directly in the plugin controller.

1 answer

0


How the steinkel got through that hole: https://github.com/CakeDC/users/issues/513

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

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

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.