Yes, you can add the relevant ip's into the app.yml. Then in the appropriate action I would do sometnig like
if ($actualIP is in_array(config->(app_denied_ips)) { $this->hideEmail = true} And you have to customize you template <?php if (!$hideEmail) echo $email ?> On 13 kvě, 10:44, blurmy23 <jblumentha...@hotmail.com> wrote: > Hey folks, > > I've inherited a symfony 1.0 project and I'm looking for a little > guidance. Though I've been using php for years, I'm fairly new to > symfony so I'm working through the 1.0 askeet tutorial > (http://www.symfony-project.org/askeet/1_0/en/). A request has come down the > line to do the following: > > * if a user comes from within a specified list of IP addresses, > display the user's email in the user data table > * otherwise hide it > > In regular old php, this would be as simple as an if statement, but in > symfony it doesn't seem so clear-cut. I think the answer I'm looking > for is inhttp://www.symfony-project.org/book/1_0/14-Generators#Administration > but I can't seem to wrap my head around it. Here's what I'm > assuming... > > * The user data table is rendered by code automatically generated > * I can override it by adding a new executeShow() method to my apps/ > backend/modules/user/actions/action.class.php (?) > * I should probably add the relevant ips to app.yml (?) > > Beyond here, I'm stuck. Any suggestions? > > Thanks! > > Jacob > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en