mirror of
https://github.com/silverstripe/silverstripe-environmentcheck
synced 2024-10-22 17:05:40 +02:00
15 lines
288 B
PHP
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;
|
|
}
|
|
}
|