Access Denied When Trying to Create a New Page on a Publishing Site

According to my project. user have to created a new page on SharePoint 2010 publishing page them-self.
But when it the test stage. I got this problem when i log into SharePoint publishing site with contribution privileged.

The account can’t create a new page and got the access deny pop up page.
I’ve found the solution refer to the following blog related with MOSS 2007 but it still works on SharePoint 2010 as well.

The solution is just to check the permission on the master page and page layouts document library that allow your user to access them.