diff --git a/packages/edit-site/src/components/page-pages/index.js b/packages/edit-site/src/components/page-pages/index.js index c20fff8851c829..1c29e5cea7814c 100644 --- a/packages/edit-site/src/components/page-pages/index.js +++ b/packages/edit-site/src/components/page-pages/index.js @@ -277,15 +277,19 @@ export default function PagePages() { [ totalItems, totalPages ] ); - const { frontPageId, postsPageId, addNewLabel } = useSelect( ( select ) => { - const { getEntityRecord, getPostType } = select( coreStore ); - const siteSettings = getEntityRecord( 'root', 'site' ); - return { - frontPageId: siteSettings?.page_on_front, - postsPageId: siteSettings?.page_for_posts, - addNewLabel: getPostType( 'page' )?.labels?.add_new_item, - }; - } ); + const { frontPageId, postsPageId, addNewLabel, canCreatePage } = useSelect( + ( select ) => { + const { getEntityRecord, getPostType, canUser } = + select( coreStore ); + const siteSettings = getEntityRecord( 'root', 'site' ); + return { + frontPageId: siteSettings?.page_on_front, + postsPageId: siteSettings?.page_for_posts, + addNewLabel: getPostType( 'page' )?.labels?.add_new_item, + canCreatePage: canUser( 'create', 'pages' ), + }; + } + ); const fields = useMemo( () => [ @@ -496,7 +500,8 @@ export default function PagePages() {