Seems we are getting somewhere:

Changed the publicationTree factory in my content-template-contrib to 
"CoreProxy":

<extension 
target="org.nuxeo.ecm.platform.publisher.impl.service.PublisherServiceImpl" 
point="treeInstance">
                <publicationTreeConfig name="DefaultSectionsTree" 
tree="RootSectionsCoreTree" factory="*CoreProxy*" localSectionTree="true"
                        title="label.publication.tree.local.sections">
                        <parameters>
                            <!--<parameter 
name="RootPath">/default-domain/library</parameter> -->
                                <parameter 
name="RelativeRootPath">/library</parameter>
                                <parameter 
name="enableSnapshot">true</parameter>
                                <parameter 
name="iconExpanded">/icons/folder_open.gif</parameter>
                                <parameter 
name="iconCollapsed">/icons/folder.gif</parameter>
                        </parameters>
                </publicationTreeConfig>
        </extension>    

This alone gave me the error "org.nuxeo.ecm.core.api.DocumentSecurityException. 
message: Privilege 'AddChildren' is not granted to 'biblio'".

Added a publisher-permissions-contrib.xml to the plugin, just to test:

  <extension target="org.nuxeo.ecm.core.security.SecurityService"
    point="permissions">

    <permission name="Read">
      <include>AddChildren</include> 
    </permission>

  </extension>


So that anyone with read privileges over the publicationTree can publish 
directly without any validation workflow.

The problem is that permission grants the privilege to create new Sections in 
the publicationTree. Is there any workaround to be able to publish a doc while 
not being able to create a section?


Cheers.
--
Posted by "jiyarza" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: 
<http://www.nuxeo.org/discussions/thread.jspa?threadID=3058#9040>
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Reply via email to