silex-simpleuser icon indicating copy to clipboard operation
silex-simpleuser copied to clipboard

Adduser

Open PKuebler opened this issue 10 years ago • 2 comments

Build the "registerAction" to, so that they can also be used for admins to create users.

PKuebler avatar Nov 04 '14 10:11 PKuebler

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

jasongrimes avatar Nov 09 '14 12:11 jasongrimes

Hey Jason,

i changed it!

Philipp

PKuebler avatar Nov 13 '14 13:11 PKuebler