From 023ac994e940dd6b2474b8caa0c21244e33a0659 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Sun, 18 Dec 2011 18:19:55 +0100 Subject: [PATCH] MINOR Making allowed_actions explicit on some core controllers (thanks cbarberis, fixes pull request #1) --- code/controllers/StaticExporter.php | 6 ++++++ tasks/RebuildStaticCacheTask.php | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/code/controllers/StaticExporter.php b/code/controllers/StaticExporter.php index 1cd2ba9e..79890a7d 100644 --- a/code/controllers/StaticExporter.php +++ b/code/controllers/StaticExporter.php @@ -21,6 +21,12 @@ * @subpackage export */ class StaticExporter extends Controller { + + static $allowed_actions = array( + 'index', + 'export', + ); + function init() { parent::init(); diff --git a/tasks/RebuildStaticCacheTask.php b/tasks/RebuildStaticCacheTask.php index 557363d0..c3064340 100644 --- a/tasks/RebuildStaticCacheTask.php +++ b/tasks/RebuildStaticCacheTask.php @@ -6,6 +6,11 @@ * @todo Make this use the Task interface once it gets merged back into trunk */ class RebuildStaticCacheTask extends Controller { + + static $allowed_actions = array( + 'index', + ); + function init() { parent::init();