Copied to clipboard

Flag this post as spam?

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


  • Shwetha Shankar 21 posts 41 karma points
    Feb 01, 2011 @ 14:46
    Shwetha Shankar
    0

    Disabling role-based protection for a particular node

    Hi,

    The following is my content tree in Umbraco -

     Home
       - About Us
       - Our Credentials
       - Our Culture
       - Login
       - Password Reminder
       - Error page

    I have set up role-based protection on the home page such that the 'Login' page and the 'Error page' (refer to tree above) as the login and the error pages respectively. For obvious reasons I would like unauthorised users to view the Password Reminder page. But I dont know how to disable protection on this particular page.

    I have tried adding a location/system.web fragment in the web.config like this but without any luck.

    <location path="password-reminder.aspx">
        <system.web>
          <authorization>
            <allow users="*" />
          </authorization>
        </system.web>
    </location>

    Your help is greatly appreciated.

    Thanks,
    Shwetha

     

  • Jan Skovgaard 11280 posts 23678 karma points MVP 11x admin c-trib
    Feb 01, 2011 @ 14:54
    Jan Skovgaard
    0

    I Shwetha

    Could it be an option to simply place the password reminder page outside of the home hierachy?

    Otherwise I think you need to setup the protection on each node under "homepage" individually", which seems a bit cumbersome. So maybe you should consider rethinking the content structure a bit?

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft