Skip to content

Commit

Permalink
Update pattern command comments
Browse files Browse the repository at this point in the history
  • Loading branch information
t-hamano committed Apr 30, 2024
1 parent 1cef7df commit a0e4add
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions packages/core-commands/src/admin-navigation-commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@ export function useAdminNavigationCommands() {
icon: symbol,
callback: ( { close } ) => {
// The site editor and templates both check whether the user
// has edit_theme_options capabilities. We can leverage that here
// and omit the manage patterns link if the user can't access it.
// can read templates. We can leverage that here and this
// command links to the classic dashboard manage patterns page
// if the user can't access it.
if ( isTemplatesAccessible ) {
const args = {
path: '/patterns',
Expand Down

0 comments on commit a0e4add

Please sign in to comment.