cancel
Showing results for 
Search instead for 
Did you mean: 

New custom role

power
Champ in-the-making
Champ in-the-making
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  fmSmiley Tongueost both.

any idea ??
1 REPLY 1

g_rathod
Star Contributor
Star Contributor
Yes, power I did in same way, but CreateChildren allows other stuffs to add instead just to forum topic.

and here we gave permission to cm:content level,

Let us know if anybody have solution for this….