Daniel CERQUEIRA | 7 May 17:19
Picon

Action id="logout" in the actions-contrib.xml

Hi all,

I try to define the  <action id="logout"> at false (enabled="false") in the "actions-contrib.xml" for not to show in the header (USER_SERVICES) " Log out " and " Log in ".
But I always see in the header "Log out " and "Log in".

It's normal?

Thx


My XML CODE

actions-contrib.xml
------------------------------------------------------------------------------------------

<extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">
....
...
...

  <action id="logout" enabled="false" />

...
...
...

</extension>



The NUXEO CODE

actions-contrib.xml
----------------------------------------------------------------------------------------------------
<extension target="org.nuxeo.ecm.platform.actions.ActionService"
    point="actions">

    <!-- server actions -->

    <action id="user_dashboard" link="user_dashboard" enabled="true"
      label="command.user_dashboard" order="10">
      <category>USER_SERVICES</category>
      <filter id="user_dashboard_enabled">
        <rule grant="true">
          <condition>#{userServicesContext.dashboardEnabled}</condition>
        </rule>
      </filter>
    </action>

    <action id="logout" link="#{loginLogoutAction.logout}" enabled="true"
      label="command.logout" order="200">
      <category>USER_SERVICES</category>
    </action>

    <action id="user_manager" link="#{userManagerActions.viewUsers}"
      enabled="true" label="command.manageMembers" order="20">
      <category>USER_SERVICES</category>
      <filter id="user_manager">
          <rule grant="true">
              <condition>#{userServicesContext.userManagerEnabled}</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
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm

Gmane