[icinga-checkins] icinga.org: icinga-web/master: * Fixed credential name for api authentication

git at icinga.org git at icinga.org
Tue Feb 21 11:05:37 CET 2012


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

Author: Jannis Mosshammer <jannis.mosshammer at netways.de>
Date:   Tue Feb 21 10:33:47 2012 +0100

* Fixed credential name for api authentication

---

 ...ngaApiAuthentificationRoutingCallback.class.php |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/app/modules/Api/lib/auth/IcingaApiAuthentificationRoutingCallback.class.php b/app/modules/Api/lib/auth/IcingaApiAuthentificationRoutingCallback.class.php
index aaebc31..cea1ad2 100644
--- a/app/modules/Api/lib/auth/IcingaApiAuthentificationRoutingCallback.class.php
+++ b/app/modules/Api/lib/auth/IcingaApiAuthentificationRoutingCallback.class.php
@@ -33,7 +33,7 @@ class IcingaApiAuthentificationRoutingCallback extends AgaviRoutingCallback {
             // PASS
         }
         
-        if (!$this->user->hasCredential("appkit.api.access") && !$this->user->hasCredential("appkit.user")) {
+        if (!$this->user->hasCredential("appkit.api.access") && !$this->user->hasCredential("icinga.user")) {
             $errors[] = 'User has insufficient rights to access the api';
         }
         





More information about the icinga-checkins mailing list