Forum Discussion
TariqHussain
Boss
Pradnya- You can check the permission coreNode.permissions.hasPermission.
https://freemarker-docs-portal.lithium.com/refer/contextObjects
coreNode.permissions.hasPermission("property")
You just need to pass the permission name which you want to view.
e.g
<#if coreNode.permissions.hasPermission("create_thread")> <!-- user has permission to create thread--> </#if>
Here is the list of permission names which you can pass in the context object.
Pradnya
7 years agoGuide
<#if coreNode.permissions.hasPermission("create_thread")> <!-- user has permission to create thread--> </#if>
TariqHussain Above permission method is useful to check permission of user.
But just want to know permission "abc" is denied or granted for particular role without considering user context.
Thanks in advance .
- TariqHussain7 years agoBoss
Pradnya- No, there is no such REST API call which can allow you to check the permission of any other user or role.
- Pradnya7 years agoGuideThanks !!
Related Content
- 4 years ago
- 11 years ago