mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
MINOR Making allowed_actions explicit on some core controllers (thanks cbarberis, fixes pull request #1)
This commit is contained in:
parent
f4c3ad23de
commit
023ac994e9
@ -21,6 +21,12 @@
|
|||||||
* @subpackage export
|
* @subpackage export
|
||||||
*/
|
*/
|
||||||
class StaticExporter extends Controller {
|
class StaticExporter extends Controller {
|
||||||
|
|
||||||
|
static $allowed_actions = array(
|
||||||
|
'index',
|
||||||
|
'export',
|
||||||
|
);
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
|
@ -6,6 +6,11 @@
|
|||||||
* @todo Make this use the Task interface once it gets merged back into trunk
|
* @todo Make this use the Task interface once it gets merged back into trunk
|
||||||
*/
|
*/
|
||||||
class RebuildStaticCacheTask extends Controller {
|
class RebuildStaticCacheTask extends Controller {
|
||||||
|
|
||||||
|
static $allowed_actions = array(
|
||||||
|
'index',
|
||||||
|
);
|
||||||
|
|
||||||
function init() {
|
function init() {
|
||||||
parent::init();
|
parent::init();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user