Log invalid access attempts.
authorGunnar Wrobel <p@rdus.de>
Sun, 10 May 2009 06:18:44 +0000 (08:18 +0200)
committerGunnar Wrobel <p@rdus.de>
Sun, 10 May 2009 06:18:44 +0000 (08:18 +0200)
koward/lib/Koward/Controller/Application.php

index 0fd97e7..8346e9c 100644 (file)
@@ -91,6 +91,8 @@ class Koward_Controller_Application extends Horde_Controller_Base
 
         if (!$this->koward->hasAccess($id, $permission)) {
             $this->koward->notification->push(_("Access denied."), 'horde.error');
+            Horde::logMessage(sprintf('User %s does not have access to action %s!', Auth::getAuth(), $id),
+                              __FILE__, __LINE__, PEAR_LOG_NOTICE);
             if (Auth::getAuth()) {
                 $url = $this->urlFor(array('controller' => 'index', 'action' => 'index'));
             } else {