From 6cade0a681d6a915ab0a3390d829e3864d8d4d89 Mon Sep 17 00:00:00 2001 From: phpnut Date: Mon, 7 Aug 2006 11:32:42 +0000 Subject: [PATCH] "Adding fix for admin being searched in entire string" git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3382 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/dispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cake/dispatcher.php b/cake/dispatcher.php index 93bc8cba3..1597e9dc3 100644 --- a/cake/dispatcher.php +++ b/cake/dispatcher.php @@ -145,7 +145,7 @@ class Dispatcher extends Object { } } else { $__access = strpos($params['action'], CAKE_ADMIN); - if ($__access !== false) { + if ($__access === 0) { $privateAction = true; } }