silverstripe-environmentcheck/code/DevCheckController.php
2013-06-21 15:36:45 +12:00

15 lines
288 B
PHP

<?php
class DevCheckController extends Controller {
public static $allowed_actions = array(
'index'
);
function index() {
$e = new EnvironmentChecker('check', 'Environment status');
$e->init('ADMIN'); //check for admin permissions before running this check
return $e;
}
}