Skip to content

Commit

Permalink
Test fix
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoli79 committed Feb 4, 2025
1 parent a754379 commit f50d3e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/CPClientTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,9 @@ public function testGetUser(): void
"status": "ACTIVE",
"vatNumber": null
}
"wptIsPreviewEnabled": {
"enabled": false
}
}
}');
$host = "http://webpagetest.org";
Expand Down
2 changes: 1 addition & 1 deletion www/templates/layouts/includes/wpt-header.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function addTab($tabName, $tabUrl, $addClass = '')
$is_logged_in = Util::getSetting('cp_auth') && (!is_null($request_context)) && (!is_null($request_context->getClient()) && $request_context->getClient()->isAuthenticated());
$user = !is_null($request_context) ? $request_context->getUser() : null;

if ($request_context->isReadOnly()) {
if (isset($request_context) && $request_context->isReadOnly()) {

?>
<wpt-header style='margin-bottom: -1rem;'>
Expand Down

0 comments on commit f50d3e3

Please sign in to comment.