AnsweredAssumed Answered

Allow functionality based upon a group

Question asked by michaelc on Jul 8, 2010
Starting to understand the frame work a little now and I wish to modify the functionality a little.

I wish to create a group and then all member of that group would be allowed access to the function, some what like the Admin group.

   <#if user.isAdmin>
   <div class="toolbar">
      <a href="#" id="${args.htmlid}-createSite-button" class="theme-color-1">${msg("link.createSite")}</a>
   </div>
   </#if>

So my first question is how does isAdmin get defined, I did not see in in the SURF API, did I missunderstand ? http://wiki.alfresco.com/wiki/Surf_Platform_-_Freemarker_Template_and_JavaScript_API#Model_objects

Next: if I wish to add properties to the USER model how do I go about that

Outcomes