BUG adding allowed_actions to all health checks
This commit is contained in:
parent
6c7ec7040b
commit
049b3fca06
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue