silverstripe-environmentcheck/code/DevCheckController.php

15 lines
288 B
PHP
Raw Normal View History

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