cancel
Showing results for 
Search instead for 
Did you mean: 

How to configure permission for Commentator role

im2x3m4u
Champ in-the-making
Champ in-the-making
Hi All,

I've been turning around for a week to figure out how to implement a commentator role. This role only can read and reply a discussion but not to create/upload content, neither a space/sub-space (this is what Contributor role do).

I've try to make custom role Commentator but no success. I can't set the permission on node type "fm:forum". I found in the forums tell that we can't set permission on nodetypes. I think if we can set permission on node type it would be great and the permission model of Alfresco will more flexible and power full.

Is there any solution for this?
Any suggestions?

Thank you for your kind,

Best

Adi
7 REPLIES 7

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

It is not possible to do this at the moment. It will be possible in the medium term.

Cheers

Andy

im2x3m4u
Champ in-the-making
Champ in-the-making
Does Alfresco 2.9b resolve this issue?

Best,
Adi

priyanka_nayak
Champ in-the-making
Champ in-the-making
Even I have doubt regarding this..I have created a new role.For this role I have to create custom permission e.g Make ad assignments..Now for this new permission where do I have to code..

Please reply..
Priyanka

ctrl
Champ in-the-making
Champ in-the-making
Hi All

I am not sure if I understand exactly what you are trying to achieve but as far as I know you are able to create custom roles in Alfresco.  All the details have to be included in the
WEB-INF\Classes\alfresco\model\permissionsdefinitions.xml

Assuming you are creating a custom role for “Commentatorâ€

jdyer
Champ in-the-making
Champ in-the-making
Sorry to revive an old thread, but I have the same issue as the original poster.  Basically I need either a new role that is a Consumer with the added ability to post comments, or a new role that has read plus comment privileges.  Is this possible now?

I'm using 4.2.b community BTW.

abarisone
Star Contributor
Star Contributor
Hi,
you can achieve this modifying the permissionDefinition.xml file and putting it under WEB-INF/classes/alfresco/model.
There is a section stating:
<!– ================================================ –>
   <!– Permissions available to all content and folders –>
   <!– ================================================ –>
  
   <permissionSet type="cm:cmobject" expose="selected">
There you can define your own permissionGroup with the permission you need.
As you can see there all default permission levels are defined.

Regards,
Andrea

jdyer
Champ in-the-making
Champ in-the-making
Hi,
you can achieve this modifying the permissionDefinition.xml file and putting it under WEB-INF/classes/alfresco/model.
There is a section stating:
<!– ================================================ –>
   <!– Permissions available to all content and folders –>
   <!– ================================================ –>
  
   <permissionSet type="cm:cmobject" expose="selected">
There you can define your own permissionGroup with the permission you need.
As you can see there all default permission levels are defined.

Regards,
Andrea


Andrea,
Thanks for the quick response.  While I do have a background in web development, I have little experience with a Java/Tomcat apps.  Could you help me out with what I would need to do to allow the Consumer role to also post comments?  I tried this:


<permissionGroup name="Consumer" allowFullControl="false" expose="true" >
          <includePermissionGroup permissionGroup="Read" type="sys:base" />
          <includePermissionGroup permissionGroup="Write" type="fm:forum" />
</permissionGroup>

but that caused an error when starting up tomcat.  I think that should be close, but not sure if I'm using the correct string in the type field.  Any help here would be appreciated.  Thanks!