web_handoff_pages($staff)]); } $body = api_request_body(); $path = trim((string) ($body['path'] ?? '')); $url = $path !== '' ? web_handoff_create($pdo, $staff, $path) : null; if ($url === null) { api_error(403, 'PAGE_NOT_ALLOWED', 'Diese Seite darf nicht geöffnet werden.'); } api_json(['url' => $url]);