Hello!!
I need a user or group with write privileges can assign rights on a
document, I've made my own contribution like i show below, i can add rights
but when i try to save local rights, an error appear showing that i have not
sufficient privileges to execute that action
my contribution:
<component name="com.d5ecm.ecm.platform.actionsContrib">
<!-- Requiried -->
<require>org.nuxeo.ecm.platform.actions</require>
<!-- Actions -->
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="actions">
<!--manage rights on non-folderish -->
<action id="TAB_RIGHTS" enabled="false" />
<action id="FOLDERISH_TAB_RIGHTS"
link="/incl/tabs/document_rights.xhtml" order="50"
label="action.view.rights" icon="/icons/file.gif">
<category>VIEW_ACTION_LIST</category>
<filter-id>non-folderish-rights</filter-id>
</action>
</extension>
<!-- filters -->
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
point="filters">
<!--manage rights on non-folderish -->
<filter id="non-folderish-rights">
<rule grant="true">
<condition>#{userSession.administrator}</condition>
<type>File</type>
<type>Folder</type>
<type>Workspace</type>
<type>WorkspaceRoot</type>
<type>SectionRoot</type>
<type>TemplateRoot</type>
<type>Domain</type>
<type>Root</type>
</rule>
<rule grant="true">
<permission>AddChildren</permission>
<type>File</type>
<type>Folder</type>
</rule>
</filter>
</extension>
</component>
And to enable the submit button (rightsAddButton), i've edited the
server/default/deploy/nuxeo.ear/nuxeo.war/incl/document_rights_action.xhtml
file, by removing the following line:
disabled="#{!securityActions.canAddSecurityRules}"
Could someone help me on this, pls.?
Thks. in advanced
--
Jesus
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm