Content Security Policy (CSP) compatibility beta.
This commit is contained in:
@@ -15,7 +15,12 @@ if (!$GLOBALS['modules_enabled']['office']) {
|
||||
if ($API_office_stompjes->request_method === 'GET') {
|
||||
$API_office_stompjes->checkPermissions('office-stompjes', 'RO');
|
||||
|
||||
$stompjes = $API_office_stompjes->getStomp();
|
||||
if (isset($_GET['frontend'])) {
|
||||
# This one is used by the frontend and is filtered by date.
|
||||
$stompjes = $API_office_stompjes->getStomp(true);
|
||||
} else {
|
||||
$stompjes = $API_office_stompjes->getStomp();
|
||||
}
|
||||
|
||||
$API_office_stompjes->apiOutput($code = 200, ['success' => $stompjes]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user