Hi!!! I'm trying to change the "list" action in a module create with generated:admin task, i need to set restriction depending of the username loggued(not easy like in the generator.yml is more static), i'm trying to set in cache\reporte\dev\modules\autoReporte\actions :
public function executeList(sfWebRequest $request) { $t = new Criteria(); $user_id = $this->getUser()->getAttribute('user_id'); $u = new Criteria(); $u->add(sfGuardUser::USER_ID, $user_id); $user = sfGuardUser::doSelectOne($u); $user_rol = $user->getFirstName(); $t->add(ReportePeer::SERVICIO, $user_rol); // SERVICIO name is equal to username $t->addAscendingOrderByColumn(ReportePeer::CREATED_AT); $reportes = ReportePeer::doSelect($t); return $reportes; break; } but it's not working and write to you because i can't find help :( Also tried in model class and action.class in the NetBeansProjects\reportes\apps\reporte\modules\reporte but nothing :( i know that the best solution is for credentials with hascredentials but i'm new in symfony, i'm using sfGuardPlugins and propel orm, Thank, BR from Cuba, Dieter. -- 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