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?
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.
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.
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?
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.
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.
4.0.4.2 even!
is working on a reply...