Module: nagvis Branch: master Commit: 7acefa9b88b4495a6947da4cbd55430b4bbe3ba5 URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis;a=commit;h=7acefa9b88b4495a6947da4cbd55430b4bbe3ba5
Author: Lars Michelsen <[email protected]> Date: Sun Oct 18 22:49:41 2009 +0200 Fixed module not registered error when user was not logged in when calling the server api --- share/server/core/ajax_handler.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/share/server/core/ajax_handler.php b/share/server/core/ajax_handler.php index b7e3086..08c0e63 100644 --- a/share/server/core/ajax_handler.php +++ b/share/server/core/ajax_handler.php @@ -126,9 +126,9 @@ if($MODULE->actionRequiresAuthorisation()) { new GlobalMessage('ERROR', $CORE->LANG->getText('You are not permitted to access this page'), null, $CORE->LANG->getText('Access denied')); } } else { - // When not authenticated redirect to logon dialog - $MODULE = $MHANDLER->loadModule('LogonDialog'); - $UHANDLER->set('act', 'view'); + // FIXME: Maybe make login possible via API? + // When not authenticated show error message + new GlobalMessage('ERROR', $CORE->LANG->getText('You are not authenticated'), null, $CORE->LANG->getText('Access denied')); } } ------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
