Hi all,
I try to set up filters for not to show the button " new document " in few
cases.
I wish that the Administrator sees this button in a definite document, and
the others users don't access.
My problem is that I do not arrive for the type "label.cantons.folder", even
with condition : <condition>#{!currentUser.administrator}</condition> or
<condition>#{!userSession.administrator}</condition>
Anybody has an idea?
Thx
MY XML CODE
actions-contrib.xml
------------------------------------------------------------------
<action id="newDoc" link="select_document_type" enabled="true"
label="action.new.document" icon="/icons/action_add.gif">
<category>SUBVIEW_UPPER_LIST</category>
<filter id="newEtat">
<rule grant="true">
<permission>AddChildren</permission>
<facet>Folderish</facet>
</rule>
<rule grant="false">
<type>WorkspaceRoot</type>
<type>Root</type>
<type>Domain</type>
<type>SectionRoot</type>
<type>label.etat</type>
<type>label.biblio.folder</type>
<type>label.texte.folder</type>
<type>label.fede.folder</type>
<type>label.insti.folder</type>
</rule>
</filter>
<filter id="newcanton">
<rule grant="false">
<type>label.cantons.folder</type>
<condition>#{!currentUser.administrator}</condition>
</rule>
</filter>
</action>
</extension>
--
CERQUEIRA Daniel
Asyres
6, 8, 10 rue Troyon
92316 Sèvres
Tel : 01.55.64.05.64
_______________________________________________
ECM mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm