diff --git a/src/Insights.php b/src/Insights.php index b1988aa..8187d88 100644 --- a/src/Insights.php +++ b/src/Insights.php @@ -496,6 +496,10 @@ public function handle_optin_optout() return; } + if (!current_user_can('manage_options')) { + return; + } + if (isset($_GET[$this->client->slug . '_tracker_optin']) && $_GET[$this->client->slug . '_tracker_optin'] === 'true') { $this->optin();