AI Connect pour XenForo - WebMCP Bridge

AI Connect pour XenForo - WebMCP Bridge 1.2.26

Vous n'avez pas l'autorisation de télécharger
🔧 Critical Fixes
  • Fixed: allowUnauthenticatedRequest must be public — PHP fatal error on every tool API call. The method visibility was protected instead of public, causing a crash when XenForo's API framework invoked it.
  • Fixed: Missing permissions after upgrade — useTools and viewAiConnect could silently disappear from the database after an addon upgrade or manual admin panel reset. The installer now restores missing or "unset" critical permissions on every upgrade while preserving explicit admin choices (Allow/Deny).

✨ New Features
  • Three-state permission greying in Admin CP— The permission editor now shows three visual states for per-tool permissions:
    • Allow — normal (white, interactive)
    • Not Set — dimmed (60% opacity, help cursor, tooltip: "No effect while master switch is Not Set")
    • Never — disabled (35% opacity, clicks blocked, tooltip: "Blocked by Never")
    This helps administrators understand that setting tool permissions has no effect unless the master switch (useTools) is set to Allow.
  • Info page permission-aware display— The /ai-connect page now shows context-appropriate messages instead of a generic 403 error:
    • Users with useTools: full page with Generate Token button
    • Logged-in without permission: page with "You do not have permission" message
    • Anonymous (toggle ON): page with "Log in to generate a token" link
    • Anonymous (toggle OFF): standard 403
  • Permission descriptions in Admin CP — viewAiConnect now shows an explanatory note: "Controls visibility for guests only. Requires the navigation toggle to be enabled."

🔒 Permission Logic Changes
  • Navigation link: Anonymous users see the link when aiconnect_nav_top is ON + viewAiConnect = Allow. Logged-in users need useTools permission.
  • Info page access: Logged-in users always reach the page (template handles the message). Anonymous users are gated by the navigation toggle.
  • Token generator + OAuth section: Only shown to users with useTools permission.

📋 Upgrade Notes
  • Standard addon upgrade: php cmd.php xf:addon-upgrade chgold/AIConnect
  • If you previously had permission issues (403 on info page, missing nav link), this version auto-repairs the default permissions on upgrade.
  • Clear browser cache to see the updated Admin CP permission greying (JS change).
Haut