silverstripe-environmentcheck/code/DevCheck.php

11 lines
218 B
PHP

<?php
class DevCheck extends Controller {
function index() {
if(!Permission::check("ADMIN")) return Security::permissionFailure();
$e = new EnvironmentChecker('check', 'Environment status');
return $e;
}
}