cancel
Showing results for 
Search instead for 
Did you mean: 

Freemarker + space permissions

simon
Champ in-the-making
Champ in-the-making
Alfresco,

I'm trying to build some custom view with the Freemarker templating system but can't find what I need. The following is working perfect:
<#list companyhome.aspects as aspect>
   ${aspect}
</#list>
But now I need the same for the permissions of this space (e.g. companyhome). I tried:
<#list companyhome.permissions as permission>
   ${permission}
</#list>
But that didn't really work out. Is there any way to get the permissions for a space and use them in my Freemarker pages?
2 REPLIES 2

andy
Champ on-the-rise
Champ on-the-rise
Hi Simon

Permissions are not exposed in the freemarker model at the moment.
See TemplateNode.

I have added this as a request.
http://www.alfresco.org/jira/browse/AWC-648

Regards

Andy

simon
Champ in-the-making
Champ in-the-making
Saves me some time tomorrow when I'm trying this… thanks for the JIRA request.