From 9b7b367868845d6932f1cdfeaf25c1010b44e8dd Mon Sep 17 00:00:00 2001 From: Gunnar Wrobel Date: Sun, 10 May 2009 08:18:44 +0200 Subject: [PATCH] Log invalid access attempts. --- koward/lib/Koward/Controller/Application.php | 2 ++ 1 file changed, 2 insertions(+) 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 { -- 2.11.0