Hi,

I resolved my problem for the filters.
I added a new <action id="">.

Here is resolution (can be not the best) but I have my button in the good
place and only for the administrator :

<!-- The button new document by default -->
 <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>

        <!-- Filter "flase" = Not access for all the users even for the
Adminsitrator -->
        <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>
          <type>label.cantons.folder</type>
        </rule>
      </filter>
    </action>

    <!-- New button only for the administrator for to add a new "Canton" -->
    <action id="newDoc2" link="select_document_type" enabled="true"
      label="action.new.document" icon="/icons/action_add.gif">
      <category>SUBVIEW_UPPER_LIST</category>
      <filter id="newcanton">
        <rule grant="true">
          <condition>#{currentUser.administrator}</condition>
          <type>label.cantons.folder</type>
        </rule>
      </filter>

    </action>

-- 
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

Reply via email to