| @@ -257,8 +257,28 @@ | ||
| 257 | 257 | <span class="ff_settings_menu_label"><?php esc_html_e('Double Opt-in', 'fluentform'); ?></span> |
| 258 | 258 | </a> |
| 259 | 259 | </li> |
| 260 | 260 | <?php |
| 261 | + // Every control on this card (the enable toggle, the | |
| 262 | + // adapter install) requires manage_options, so showing it | |
| 263 | + // to a settings manager would only offer them a switch | |
| 264 | + // that always errors. | |
| 265 | + if (current_user_can('manage_options')) { ?> | |
| 266 | + <li class="<?php echo esc_attr(Helper::getHtmlElementClass('mcp_settings', $currentComponent)); ?> ff_list_button_item"> | |
| 267 | + <a | |
| 268 | + class="ff_list_button_link" | |
| 269 | + data-hash="mcp_settings" | |
| 270 | + title="<?php echo esc_attr(__('MCP for AI Agents', 'fluentform')); ?>" | |
| 271 | + aria-label="<?php echo esc_attr(__('MCP for AI Agents', 'fluentform')); ?>" | |
| 272 | + href="<?php echo esc_url(Helper::makeMenuUrl('fluent_forms_settings', [ | |
| 273 | + 'hash' => 'mcp_settings' | |
| 274 | + ])); ?>"> | |
| 275 | + <i class="ff_settings_menu_icon ff-icon ff-icon-code" aria-hidden="true"></i> | |
| 276 | + <span class="ff_settings_menu_label"><?php esc_html_e('MCP for AI Agents', 'fluentform'); ?></span> | |
| 277 | + </a> | |
| 278 | + </li> | |
| 279 | + <?php } ?> | |
| 280 | + <?php | |
| 261 | 281 | if (ArrayHelper::exists($components, 'InventoryManager')) { ?> |
| 262 | 282 | <li class="<?php echo esc_attr(Helper::getHtmlElementClass('inventory', $currentComponent)); ?> ff_list_button_item"> |
| 263 | 283 | <a |
| 264 | 284 | class="ff_list_button_link" |