Users without 'use Drupal Canvas ai' can open Canvas AI agent
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3533449. --> Reported by: [mglaman](https://www.drupal.org/user/2416470) Related to !22 !1387 >>> <h3 id="overview">Overview</h3> <p>If a user does not have the 'use experience builder ai' permission, they should not see the XB AI button</p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>aiExtensionAvailable should check if module exists _and_ permission.</p> <h3 id="ui-changes">User interface changes</h3> > Related issue: [Issue #3485692](https://www.drupal.org/node/3485692)
issue