Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Kim Løwert 130 posts 116 karma points
    Jan 10, 2014 @ 11:10
    Kim Løwert
    0

    How to get AllowedGroups in System.Web.Membership

    Hi there,

    I am in a situation where I need to get the authorized groups on an Umbraco page, as I need it for some additional functionality.

    I used to be able to get this via

    umbraco.cms.businesslogic.web.Access.GetAccessingMembershipRoles(documentId, path)

    but this method has been deprecated. Do any of you guys know the equivalent method when using ASP.NET Membership functionality?

    Thanks a lot in advance :)

    Best regards

    Kim

  • Kim Løwert 130 posts 116 karma points
    Jan 10, 2014 @ 12:11
    Kim Løwert
    100

    OK... At last I found the solution.

    umbraco.cms.businesslogic.web.Access.GetAccessingMembershipRoles(documentId, path)

    is the new replacement for

    umbraco.cms.businesslogic.web.Access.GetAccessingGroups(documentId, path)

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies