Copied to clipboard

Flag this post as spam?

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


  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Apr 05, 2012 @ 12:49
    Markus Johansson
    0

    Public Access without a role

    Hi!


    I know that one can restrict a umbraco node to a certain group of members (role). But I'm wondering, is there a way to configure so that all logged in members can see de node indepentent of there roles?

     

  • Chris Koiak 700 posts 2626 karma points
    Apr 05, 2012 @ 12:53
    Chris Koiak
    0

    Hi Markus,

    Create another role that all members have in addition to their first role. Then change the public permissions to allow access if the new role exists.


    Cheers

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Apr 05, 2012 @ 13:01
    Markus Johansson
    0

    Hi Chris!

    Thank you for fast feedback, I know that adding all members to a group would solve the issue but I was wondering if there is another way to do this. Like if we where using the login view, only loggin in would show the LoggedInTemplate, no need for roles.

     <asp:LoginViewID="yada"runat="server">
      <AnonymousTemplate>
          Not logged in
       </AnonymousTemplate>
       <LoggedInTemplate>
           Logged in 
       </LoggedInTemplate>
    </asp:LoginView>

    Is there a way to protect pages in "is user loggedin basis" or do I have to put them in a role?

  • Chris Koiak 700 posts 2626 karma points
    Apr 05, 2012 @ 13:02
    Chris Koiak
    0

    I don't think there's anything 'out the box'.

    However you could write a macro and add it to the page in question. The macro could check if there's not a logged in user and redirect to the login page.

  • Markus Johansson 1936 posts 5864 karma points MVP 2x c-trib
    Apr 05, 2012 @ 13:04
    Markus Johansson
    1

    @Chris - Thank you. That's what I was thinking, to bad.. =/ I think I'll just add all of them to some group like "users" or something.

Please Sign in or register to post replies

Write your reply to:

Draft