Custom Modules not working in 5.3

Posted by Community Admin on 04-Aug-2018 16:54

Custom Modules not working in 5.3

All Replies

Posted by Community Admin on 21-Dec-2012 00:00

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

Posted by Community Admin on 24-Dec-2012 00:00

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.

Greetings,
Kristian Smilenov
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

This thread is closed