CKEditor AI plugin button available without permission to use it
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3515455. --> Reported by: [ecvandenberg](https://www.drupal.org/user/819336) Related to !528 >>> <p>Thanks for this great module!</p> <p>I noticed that the AI assistant button is always visible in CKEditor, even for users who don&rsquo;t have permission to use the AI plugin. While the plugin doesn&rsquo;t function in those cases, the button's presence is confusing and leads to an error.</p> <p>Currently, I don&rsquo;t see a straightforward way to configure access so that only specific roles can use the AI plugin. Adjusting the text filter to enable the AI plugin wouldn&rsquo;t be a practical solution.</p> <p>In our setup, users create and edit content, while moderators review, refine, and approve it. Only moderators should have access to the AI plugin, but requiring them to switch text formats would be cumbersome.</p> <p>Would it be possible to hide the AI assistant button when the user does not have the permission to use it?</p>
issue