1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Custom Modules not working in 5.3

Custom Modules not working in 5.3

2 posts, 0 answered
  1. KMac
    KMac avatar
    133 posts
    Registered:
    15 Dec 2008
    21 Dec 2012
    Link to this post
    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
  2. Kristian Smilenov
    Kristian Smilenov avatar
    32 posts
    Registered:
    18 Mar 2015
    24 Dec 2012
    Link to this post
    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
2 posts, 0 answered