Forum Discussion

chrigu's avatar
chrigu
Guide
13 years ago
Solved

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...
  • Claudius's avatar
    13 years ago

    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