BUG adding allowed_actions to all health checks

This commit is contained in:
Julian Seidenberg 2013-02-20 12:14:21 +13:00
parent 6c7ec7040b
commit 049b3fca06
2 changed files with 10 additions and 0 deletions

View File

@ -1,6 +1,11 @@
<?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

View File

@ -1,6 +1,11 @@
<?php
class DevHealthController extends Controller {
public static $allowed_actions = array(
'index'
);
function index() {
$e = new EnvironmentChecker('health', 'Site health');
$e->init(''); //empty permission check, the "health" check does not require a permission check to run