Securing an Alfresco dashlet

In a recent project, we wanted to disable some information for any other user than the Site Administratiors. This can be done by using the Remote API.

custom-sitedashlet.get.js

 

custom-sitedashlet.get.html.ftl

 

 

If you just want to limit content to system administrators, user.isAdmin is always available.

Kommentera

E-postadressen publiceras inte. Obligatoriska fält är märkta *