Copied to clipboard

Flag this post as spam?

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


  • Connie DeCinko 85 posts 212 karma points
    1 week ago
    Connie DeCinko
    0

    Does member have access to this content?

    I am able to use...

    @if (Members.IsLoggedIn())
    

    to determine if the Member is logged in, which works great for basic hide/show of global elements. Now, I need to dig one level deeper. I need to hide components (uSkinned components) which are just a content node below the current page, unless the Member is authorized to view that component.

    First, is there a simple command like the one above that will tell me if the Member is authorized to view the page?

  • Alex Skrypnyk 5329 posts 19613 karma points MVP 3x admin c-trib
    1 week ago
    Alex Skrypnyk
    0

    Hi Connie

    Did you try to use "Public access" feature in Umbraco backend?

    Try to press the right button on the node and use "Public access".

    Thanks,

    Alex

  • Connie DeCinko 85 posts 212 karma points
    1 week ago
    Connie DeCinko
    0

    I have. I assigned the roles there. Problem is, uSkinned tells me that components are not treated like pages so they ignore the public access settings. I have to figure out a way to add that in.

Please Sign in or register to post replies

Write your reply to:

Draft