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.
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.
Did you find a solution for this by any chance Andrei?
is working on a reply...