BreakRoleInheritance and AllowUnsafeUpdates:
"BreakRoleInheritance and AllowUnsafeUpdates
Posted at 2008-11-13 10:21 by Wictor Wilén in SharePoint with 1 comments.
I have just struggled a while with a SharePoint Web Part that constantly threw an error, see below. This Web Part is creating a SharePoint list when it is first loaded by a user and it should create a list with permissions so that only the user has access to it (i.e. a personal list). This is done by breaking the role inheritance of the list using BreakRoleInheritance(false), so that no inherited roles are copied. I’ve used the method for this previously in the solution, but then this was done on a POST request and now it should do almost the same during a GET request, that is when the user navigates to the page."
Friday, November 5, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment