How to check permission of current user for a tree folder or tree node?
Hi friends,
I was design a page as below.

In this design have a Country field. I want the country list will be display only countries that the current AEM user have permission to access. I will create a tree folder or tree node for country and city. So, I will configuration for the user or user group can access to special country or city. The all country list and all city list call from the service API.
How to check the permission of the current AEM user from Signthly or JavaScript? Because, I want to check the permission of the current user with the country folder or note in AEM. After that, I will compare the country code in AEM with the country code from the service API to filter it to display in the country select list.
Please help me,
How to check the permission of the current AEM user from Signthly or JavaScript?
Thank you so much,
BienHV