Create Publishing page gives access denied error

Apr 29, 2010 at 1:35 PM

Hi Tommy,

We have used CompleteSharePoint in our project. When a user with contributor rights tries to create a publishing page he gets a error as Error: Access Denied

Current User
You are currently signed in as:  currentuser
 
Sign in as a different user

When we dubug the code it was due to the line currentWeb.Properties.Update inside a method RemovePostBackReference in file PageEditingToolbar.cs. Also after commenting these lines error goes away but when contributor tries to edit the page he gets the same error. This error is also due to the same line currentWeb.Properties.Update inside a method CheckOutCurrentPage in file BaseWebPartPage.cs.

Also it doesn't work when we try to run the same code with elevated privilleges. 

Please help with this.