[icinga-checkins] icinga.org: icinga-web/master: * Fixed command info for loading when not logged in

git at icinga.org git at icinga.org
Tue Nov 15 11:47:40 CET 2011


Module: icinga-web
Branch: master
Commit: ff9871ee1bc566fd10bebd349f96e9063294fd3b
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=ff9871ee1bc566fd10bebd349f96e9063294fd3b

Author: Marius Hein <marius.hein at netways.de>
Date:   Tue Nov 15 08:09:00 2011 +0100

* Fixed command info for loading when not logged in

---

 app/modules/Api/lib/js/Command/Info.js |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/app/modules/Api/lib/js/Command/Info.js b/app/modules/Api/lib/js/Command/Info.js
index bbafdd9..2f9833e 100644
--- a/app/modules/Api/lib/js/Command/Info.js
+++ b/app/modules/Api/lib/js/Command/Info.js
@@ -27,6 +27,12 @@ Ext.ns('Icinga.Api.Command');
             if (this.loaded === true) {
                 return true;
             }
+            
+            
+            // Not logged in, abort loading of info
+            if (!AppKit.getPrefVal("author_name")) {
+            	return;
+            }
 
             var abort = false;
 





More information about the icinga-checkins mailing list