`CanvasUiAccessCheck` should grant access if the user has access to content templates or code components
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3544865. -->
Reported by: [penyaskito](https://www.drupal.org/user/959536)
Related to !30
>>>
<h3 id="overview">Overview</h3>
<p><em>Discovered in <span class="drupalorg-gitlab-issue-link drupalorg-gitlab-link-wrapper"><a href="https://git.drupalcode.org/project/canvas/-/work_items/3541006" class="drupalorg-gitlab-link">https://git.drupalcode.org/project/canvas/-/work_items/3541006</a></span>.</em></p>
<p><code>CanvasUiAccessCheck</code> should grant access if the user has access to content templates or code components</p>
<h3 id="proposed-resolution">Proposed resolution</h3>
<ul>
<li>Fix <code>CanvasUiAccessCheck</code></li>
<li>Add unit test.</li>
</ul>
<h3 id="ui-changes">User interface changes</h3>
<p>A user can access canvas even when only having permissions to content templates or code components</p>
issue