Copied to clipboard

Flag this post as spam?

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


  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Sep 01, 2010 @ 01:00
    Tim
    0

    Check admin user permissions

    Hi,

    Is it possible to check if an admin user has access to a specific section on the site usiung the API?

    For example, I have a custom section that I've written that I would like to ensure only users who've been granted access to the section can see.

    Cheers,

    Tim.

  • Aaron Powell 1708 posts 3046 karma points c-trib
    Sep 01, 2010 @ 05:44
    Aaron Powell
    0

    What's wrong with using the standard Umbraco security to decide who can and can't access that section? If the user didn't have access how would they get somewhere that you'd need to explicitly check their access?

  • Douglas Robar 3570 posts 4711 karma points MVP ∞ admin c-trib
    Sep 01, 2010 @ 10:15
    Douglas Robar
    0

    Exactly. In the Users section of the umbraco backend, only allow specific users to see your custom section. No need for the api at all.

    cheers,
    doug.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Sep 01, 2010 @ 10:35
    Tim
    0

    In 4.0.4, if I create a custom section, if I set their permissions, they can't see the icon to the section, but if they type in the URL directly, they can access the page, it doesn't seem to check whether they should have access on the page. I'm using a page that inherits from UmbracoBasePage, so I thought it would check if the user had access to the sction, but it doesn't look like it does....... So I was going to add a manual check to the page to spit them back to the dashboard if they didn't have access.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Sep 01, 2010 @ 10:38
    Tim
    0

    4.0.4.2 even!

Please Sign in or register to post replies

Write your reply to:

Draft