[Alba-desarrollo] SVN Alba r6130 - prosistem/alba/trunk/alba/apps/principal/modules/seguridad/actions

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Abr 27 20:38:54 CEST 2009


Author: josx
Date: 2009-04-27 15:38:53 -0300 (Mon, 27 Apr 2009)
New Revision: 6130

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/seguridad/actions/actions.class.php
Log:
Cambiando sf_enviroment por sf_config::get 

Modified: prosistem/alba/trunk/alba/apps/principal/modules/seguridad/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/seguridad/actions/actions.class.php	2009-04-24 21:22:40 UTC (rev 6129)
+++ prosistem/alba/trunk/alba/apps/principal/modules/seguridad/actions/actions.class.php	2009-04-27 18:38:53 UTC (rev 6130)
@@ -89,13 +89,12 @@
                         $this->debugMessage($message);                    
                     }                               
                     // quitando credenciales para la demo
-                    if(SF_ENVIRONMENT =='demo'){
+                    if(sfConfig::get('sf_environment') =='demo'){
                         $this->logMessage('{DEMO} quitando credenciales');
                         $this->getUser()->removeCredential('usuario');
                         $this->getUser()->removeCredential('permiso');
                         $this->getUser()->removeCredential('modulo');
                         $this->getUser()->removeCredential('rol');
-                    
                     }                                               
                     $this->debugMessage('Login ok');
                     return $this->redirect($this->getRequestParameter('referer', '@homepage'));




Más información sobre la lista de distribución Alba-desarrollo