AnsweredAssumed Answered

Allow consumers to comment

Question asked by mikepriest87 on Dec 7, 2017
Latest reply on Dec 8, 2017 by mikepriest87

Is there a standard way to allow Consumers (repo permission) the ability to comment on documents?

 

We are trying to extend the default Consumer role so that Consumer users can create comments. We have added the following code to our permissionDefinitions.xml but to no avail.


permissionDefinitions.xml

 

 

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE permissions >
<permissions>
    <namespaces>
        <namespace uri="http://www.alfresco.org/model/system/1.0" prefix="sys"/>
        <namespace uri="http://www.alfresco.org/model/content/1.0" prefix="cm"/>
        <namespace uri="http://www.alfresco.org/model/forum/1.0" prefix="fm"/>
    </namespaces>

    <permissionSet type="fm:discussable" expose="selected">
        <permissionGroup name="CreateComments" requiresType="true" expose="false">
            <includePermissionGroup permissionGroup="CreateChildren" type="sys:base" />
        </permissionGroup>

        <permission name="_CreateComments" expose="false" >
            <grantedToGroup permissionGroup="CreateComments" />
        </permission>
    </permissionSet>

    <permissionSet type="fm:discussable" expose="selected">
        <permissionGroup name="Consumer" allowFullControl="false" expose="true" >
            <includePermissionGroup type="sys:base" permissionGroup="Read"/>
            <includePermissionGroup type="fm:discussable" permissionGroup="CreateComments"/>
        </permissionGroup>
    </permissionSet>
</permissions>


And imported it to our module-context.xml using:

 

<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'>

<beans>
    <bean id="extendPermissionModel" parent="permissionModelBootstrap">
        <property name="model" value="alfresco/module/${project.artifactId}/permission/permissionDefinitions.xml" />
    </bean>
</beans>

Outcomes