Copied to clipboard

Flag this post as spam?

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


  • Nate 143 posts 184 karma points
    Jul 04, 2011 @ 23:08
    Nate
    0

    Restrict access based on member group via web.config?

    I have an elmah running and want to restrict it so only people in the member group "Admin" can see it.

    Here's what I have:

       <location path="elmah.axd">       
            <system.web>
                <authorization>
                    <deny users="*"/>
                    <allow roles="Admin"/>
                </authorization>
            </system.web>
        </location>

    I have that above the umbraco <location> block.

    That's not working though.  Should it?

     

  • Dirk De Grave 4541 posts 6021 karma points MVP 3x admin c-trib
    Jul 04, 2011 @ 23:29
    Dirk De Grave
    0

    Hi Nate

    I don't think this is going to work (and if you can prove otherwise, please report back), but you could follow Lee's blog post and deny any user to acccess Elmah via it's normal path and create a dashboard control to which only users of type admin have access to.

     

    Cheers,

    /Dirk

Please Sign in or register to post replies

Write your reply to:

Draft