Groups
Groups
Sign in
Groups
Groups
surforce-library
Conversations
About
Send feedback
Help
[surforce-library commit] r51 - trunk/library/Zsurforce/Generic
1 view
Skip to first unread message
codesite...@google.com
unread,
Mar 9, 2009, 1:37:16 AM
3/9/09
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to surforce...@googlegroups.com
Author: enriqueplace
Date: Sun Mar 8 22:04:32 2009
New Revision: 51
Modified:
trunk/library/Zsurforce/Generic/ControllerAdmin.php
Log:
ajustes en login
Modified: trunk/library/Zsurforce/Generic/ControllerAdmin.php
==============================================================================
--- trunk/library/Zsurforce/Generic/ControllerAdmin.php (original)
+++ trunk/library/Zsurforce/Generic/ControllerAdmin.php Sun Mar 8 22:04:32
2009
@@ -23,9 +23,13 @@
final function preDispatch()
{
$auth = Zend_Auth::getInstance();
-
+
if ($auth->hasIdentity ()) {
- $this->view->adminLogueado = true;
+
+ if(!isset($this->_user->admin_mail)){
+ die();
+ }
+
$this->_admin = $this->view->admin =
Zend_Auth::getInstance()->getIdentity();
/* Genera el menú dinámico para el sistema de admin */
Reply all
Reply to author
Forward
0 new messages