Page MenuHomePhabricator

Content model based permission checks do not use the actual content model on undelete/import
Open, MediumPublic


Various title-based permission checks (e.g. Title::checkSiteConfigPermissions) check the content model of the page. When checking for the permission for creating the page, Title will use the default content model of that title. That is incorrect when the action will result with the page being created with some non-default content model, as can be the case when undeleting or importing a page.