Permalink
Browse files

MINOR Making allowed_actions explicit on some core controllers (thank…

…s cbarberis, fixes pull request #1)
  • Loading branch information...
1 parent f4c3ad2 commit 023ac994e940dd6b2474b8caa0c21244e33a0659 @chillu chillu committed Dec 18, 2011
Showing with 11 additions and 0 deletions.
  1. +6 −0 code/controllers/StaticExporter.php
  2. +5 −0 tasks/RebuildStaticCacheTask.php
@@ -21,6 +21,12 @@
* @subpackage export
*/
class StaticExporter extends Controller {
+
+ static $allowed_actions = array(
+ 'index',
+ 'export',
+ );
+
function init() {
parent::init();
@@ -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();

0 comments on commit 023ac99

Please sign in to comment.