Get Permissions for Categories & Boards
Hi
I'm buliding a custom component where the different categories and boards are displayed. Now need to pay attention that normal users don't see all the special categories & boards that are only accessible by a special group of users. Is there a way to retrieve the required permissions from a category or board that are required to see it?
I found a solution but there the verifcation is hard-coded into the component. I'd like to verify the permissions of the user against the permissoins that were configured in the administration interface for that board or category.
Did you give the Rest API already a try? I think if you are using the "rest()" freemarker command instead of "restadmin()" it will take the current user's (or anonymous if viewer of page is not logged in) permissions into account. You might need some error handling though if the user does not have access to that node.
In that regard you might find the examples in this topic relevant for your scenario: http://lithosphere.lithium.com/t5/Developers/Component-Permissions/m-p/38060#M640