Copied to clipboard

Flag this post as spam?

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

  • Andrei 68 posts 130 karma points
    Feb 22, 2011 @ 10:25

    Override Access.HasAccess functionality

    Hi all,

    Problem 1: I need to override how the method: "Access.HasAccess()". It looks like this method is used internally by umbraco to check access on pages, but the way it works is not enough on my project. This method allows access to a page if the user is in any of the roles configured for the page under 'Public access'. What  I need is to allow access only if the user is part of all the roles used to protect the page. Is there a way where I can plug in my custom code so umbraco will automatically use it for checking access? I know there is another way, where I can do a manual custom check on each page, but that's not a nice way to do it.

    Problem 2: I am using an external roles provider and it contains over 1500 roles. This causes umbraco to freeze when trying to open 'Public access' for a page, making it unusable.

  • Rune Antonsen 29 posts 145 karma points
    Jan 26, 2017 @ 14:38
    Rune Antonsen

    Did you find a solution for this by any chance Andrei?

Please Sign in or register to post replies

Write your reply to: