I tried to reproduce your problem, but to no avail. Both with our latest code version and with the build you specified, 4.1.1339.0.
Here's a detailed list of the steps I took:
I created a custom page template in the system, based on a custom master page.
I created a custom page (named "CustomPage") based on the custom template.
I created a custom role (named "PageEditor") in the system, and a user ("testUser") who is assigned to this custom role (and defined as a backend user).
In order to grant PageEditor role specific permissions on CustomPage, I ran the following code:
PageManager pm = PageManager.GetManager();
RoleManager rm = RoleManager.GetManager();
//get the custom page
PageNode customPage = pm.GetPageNodes()
node => node.Title ==
//get the custom role
Role pageEditor = rm.GetRole(
//make sure permission inheritance for this page
//is broken. Otherwise specific permissions are
//check if a permission for the custom role already
//exists for this page
Permission pageEditorPermission =
permission.PrincipalId == pageEditor.Id)
//if the permission doesn't exist,
//we need to created it and attach it to the page
pageEditorPermission = pm
//grant the custom role the option to modify
//(or any other desired permission)
Once this code ran, I could verify in the backend UI that my custom role has the correct permissions granted, and editing the page went without crashes while logged in as testUser.
Please let me know if this information was helpful for you. If you still get the errors you reported, please specify in more detail what steps you've taken, the code you've been trying to run in order to grant/deny permissions and the status of permissions on the aforementioned objects.
the Telerik team
Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking
system and vote to affect the priority of the items