AnsweredAssumed Answered

New custom role

Question asked by power on Jun 18, 2010
Latest reply on Jun 18, 2010 by g_rathod
Hi,

I am using alfresco 3.2R enterprise.

I have created new role called CustomConsumer for alfresco share:

Intension is to create a role which have consumer role + can add a topic to discussion only ( no permission to add links,blogs,wiki etc permission)

changed permissionDefinition.xml in following way :

<permissionSet type="fm:post" expose="selected">
         <permissionGroup name="ForumConsumer" allowFullControl="false" expose="true" >
                   <includePermissionGroup permissionGroup="CreateChildren" type="cm:content" />
                        </permissionGroup>
</permissionSet>

and inside cm:content


<permissionGroup name="CustomConsumer" allowFullControl="false" expose="true" >
         <includePermissionGroup type="fm:post" permissionGroup="ForumConsumer"/>
      </permissionGroup>

Here I have check forum-post.get.json.ftl  used following things..


   "forumPermissions":
   {
      "create": ${forum.hasPermission("CreateChildren")?string},
      "edit": ${forum.hasPermission("Write")?string},
      "delete": ${forum.hasPermission("Delete")?string}
   },

So to create  we require CreateChildren permssion that I already given, but it allows other stuffs to add (in wiki, blogs, links etc) even though I tried with specific type   fm:topic  and  fm:post both.

any idea ??

Outcomes