From: Gunnar Wrobel
Date: Sun, 10 May 2009 06:18:44 +0000 (+0200) Subject: Log invalid access attempts. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=9b7b367868845d6932f1cdfeaf25c1010b44e8dd;p=horde.git Log invalid access attempts. --- diff --git a/koward/lib/Koward/Controller/Application.php b/koward/lib/Koward/Controller/Application.php index 0fd97e77d..8346e9c6e 100644 --- a/koward/lib/Koward/Controller/Application.php +++ b/koward/lib/Koward/Controller/Application.php @@ -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 {