PluginProbe
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO / 2.14.0
ThinkRank AI SEO – AI SEO Plugin for WordPress: Schema, XML Sitemaps, Meta Tags, Search Console & Local SEO v2.14.0
2.14.1 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.1 2.1.0 2.0.2 2.0.1 2.0.0 1.32.0 1.31.0 1.30.0 1.29.0 1.28.0 1.27.0 All 56 releases
← All changes | includes/api/class-ai-insights-endpoint.php +6 -1 2.8.0 → 2.14.0 View file →
@@ -19,8 +19,9 @@
19 19 declare(strict_types=1);
20 20
21 21 namespace ThinkRank\API;
22 22
23 +use ThinkRank\Core\Capability_Manager;
23 24 use ThinkRank\SEO\Ai_Traffic_Tracker;
24 25 use WP_REST_Controller;
25 26 use WP_REST_Request;
26 27 use WP_REST_Response;
@@ -76,9 +77,13 @@
76 77 *
77 78 * @return bool
78 79 */
79 80 public function check_admin_permissions(): bool {
80 - return current_user_can('manage_options');
81 + // The capability the Role Manager actually writes against, not
82 + // manage_options: `route_map()` maps this prefix to
83 + // thinkrank_ai_insights and the matrix offers an "AI Insights" row, so
84 + // demanding manage_options here made that grant do nothing (#844).
85 + return Capability_Manager::current_user_can('thinkrank_ai_insights');
81 86 }
82 87
83 88 /**
84 89 * AI traffic dashboard summary.