Re: [symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-21 Thread Stan McFarland
Thanks to both of you. I have Gabor's method working but will consider yours also. Thanks again. -stan On Tue, Dec 21, 2010 at 9:39 AM, Yitzchak Schaffer < yitzchak.schaf...@gmx.com> wrote: > On 2010-12-20 10:27, Stan McFarland wrote: > >> I guess the subject says it all. :) Looking for su

Re: [symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-21 Thread Yitzchak Schaffer
On 2010-12-20 10:27, Stan McFarland wrote: I guess the subject says it all. :) Looking for suggestions as to how best to hide specific form fields (not in the backend generator, but the frontend) based on user credentials. Thanks! I've created subclasses of the form classes for this purpo

Re: [symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-20 Thread Gábor Fási
Inject the user in the form's constructor via the $options parameter, use that in the configure() function. On Mon, Dec 20, 2010 at 16:27, Stan McFarland wrote: > Hi, > > I guess the subject says it all.  :)  Looking for suggestions as to > how best to hide specific form fields (not in the backen

[symfony-users] best way to hide form fields in front_end based on credentials?

2010-12-20 Thread Stan McFarland
Hi, I guess the subject says it all. :) Looking for suggestions as to how best to hide specific form fields (not in the backend generator, but the frontend) based on user credentials. Thanks! -stan -- If you want to report a vulnerability issue on symfony, please send it to security at