Copied to clipboard

Flag this post as spam?

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


  • Dimitris Papadimitriou 14 posts 34 karma points
    Jul 29, 2011 @ 20:27
    Dimitris Papadimitriou
    0

    Allow only users of specific type to see a page

    Hi,

    guess that this is trivial question. How can I prevent all users apart from those of a specific type from being able to see a page? I tried using the traditional asp.net way but didn't work:

      <location path="MyPage.aspx">
        <system.web>
          <authorization>
            <allow roles="MyUserType"/>
            <deny users="*"/>
          </authorization>
        </system.web>
      </location>

    With that I want to allow only users of user type "MyUserType" to be able to access /MyPage.aspx. But it does not work.

    Any ideas?

  • Doug Mackay 56 posts 155 karma points
    Jul 29, 2011 @ 21:27
    Doug Mackay
    1

    Think you would right click a node in the Umbraco content section, select public access then role based protection. See http://our.umbraco.org/wiki/reference/umbraco-client/context-menus/public-access

Please Sign in or register to post replies

Write your reply to:

Draft