Skip to content

Commit

Permalink
fix dashboard always public over REST API
Browse files Browse the repository at this point in the history
  • Loading branch information
dannyvankooten committed Jan 26, 2025
1 parent 0ed3569 commit e2992c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/class-rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class Rest
public static function register_routes()
{
$settings = get_settings();
$is_dashboard_public = $settings['is_dashboard_public'] || true;
$is_dashboard_public = $settings['is_dashboard_public'];
$instance = new Rest();

register_rest_route(
Expand Down

0 comments on commit e2992c2

Please sign in to comment.