[icinga-checkins] icinga.org: icinga-web/r1.6: * Fixed api requiring icinga. user even if appkit.api.access is given

git at icinga.org git at icinga.org
Fri Feb 24 15:20:27 CET 2012


Module: icinga-web
Branch: r1.6
Commit: 66c6fe6099f6acdb62fe0144c4d541f19ff72551
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=66c6fe6099f6acdb62fe0144c4d541f19ff72551

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Fri Feb 24 12:10:56 2012 +0100

* Fixed api requiring icinga.user even if appkit.api.access is given

---

 app/modules/Api/actions/ApiSearchAction.class.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Api/actions/ApiSearchAction.class.php b/app/modules/Api/actions/ApiSearchAction.class.php
index be1f3dd..5a460a5 100644
--- a/app/modules/Api/actions/ApiSearchAction.class.php
+++ b/app/modules/Api/actions/ApiSearchAction.class.php
@@ -51,7 +51,7 @@ class Api_ApiSearchAction extends IcingaApiBaseAction {
 
     public function executeRead(AgaviRequestDataHolder $rd) {
         
-        if (!$this->context->getUser()->isAuthenticated() || !$this->context->getUser()->hasCredential('icinga.user')) {
+        if (!$this->context->getUser()->isAuthenticated()) {
             return array('Api', 'GenericError');
 	    }
         





More information about the icinga-checkins mailing list