Custom Modules not working in 5.3
We're trying to
upgrade our custom modules to 5.3 and there's obviously been a change that is
causing us an issue. In our OpenAccessProvider.cs (taken from the product
module sample in the SDK), we have this:
////remove the item from the parent
list of inheritors
var securityRoot =
this.GetSecurityRoot();
if (securityRoot != null)
List<PermissionsInheritanceMap> parentInheritors =
securityRoot.PermissionChildren.Where(c => c.ChildObjectId ==
person.Id).ToList();
for (int inheritor = 0; inheritor < parentInheritors.Count();
inheritor++)
securityRoot.PermissionChildren.Remove(parentInheritors[inheritor]);
I see that the PermissionChildren has been removed but I don't know what this
code should be changed to in order to get it to work. Can someone please tell
me.
Thanks,
Kalvin
Hi Kalvin,
Because of the changes in Sitefinity 5.3, this code is no longer needed and you can delete it. The OpenAccessProvider.cs file in the Sitefinity 5.3 SDK is updated and this code snippet is
commented out.