AnsweredAssumed Answered

Hide 'New folder' button for a custom role

Question asked by jgautier on Oct 31, 2013
Latest reply on Oct 31, 2013 by jgautier

I use Alfresco Community 3.4d and I created a custom role on Alfresco Share.
I want to hide the "New Folder" button for this role.

I found the file to modify : "toolbar.lib.ftl" in "documentlibrary/include" but I don't know how to do the test.

I tried :

<#if role != "MyCustomRole">

This doesn't work because "role" is undefined.

So I want to know how I can retrieve the connected user role to do my test in this file ?