silex-simpleuser
silex-simpleuser copied to clipboard
Adduser
Build the "registerAction" to, so that they can also be used for admins to create users.
Hi Philipp,
Thanks for this contribution, I like the idea.
The EDIT_USER
privilege isn't intended to be used this way, though--it takes a User instance as an argument, to test whether the viewer can edit that User. I'm not sure what happens otherwise, but I suspect it's not what you intend.
I think you may want to replace EDIT_USER
with ROLE_ADMIN
instead.
Jason
Hey Jason,
i changed it!
Philipp