function system_status_access_callback in System Status 8.2
Same name and namespace in other branches
- 8 system_status.module \system_status_access_callback()
- 6.2 system_status.module \system_status_access_callback()
- 7 system_status.module \system_status_access_callback()
Access callback: Check authorized IP.
TODO $request->attributes->get('_raw_variables')->get('system_status_token')
See also
File
- ./
system_status.module, line 55 - Drupal system status.
Code
function system_status_access_callback($token = FALSE) {
$config = \Drupal::config('system_status.settings');
if ($config
->get('system_status_service_allow_external') == 0 || $token !== $config
->get('system_status_token')) {
return FALSE;
}
return TRUE;
}