Hello,
I would like to modify the look of the menus, and allow only users with
admin rights to be allowed to create a specific ressource type, so
that's what I tried:
In mypub/config/menu/generics.xsp, I added:
<menus>
<menu i18n:attr="name" name="File">
<block admin="false">
<item uc:usecase="site.create" wf:event="mydoctype"
href="?doctype=mydoctype"><i18n:text>New MyDoctype</i18n:text></item>
</block>
</menu>
And then in mypub/config/workflow/workflow.xml :
<transition source="authoring" destination="authoring">
<event id="mydoctype"/>
<condition
class="org.apache.lenya.cms.workflow.RoleCondition">admin</condition>
</transition>
I also tried to add in mypub/config/ac/usecase-policies.xml
<usecase id="mydoctype">
<role id="admin"/>
</usecase>
But it doesn't work :-( I read the 1.2 doc [1], but didn't get
enlighted. Does somebody have a hint?
Thanks,
Renaud
[1] http://lenya.apache.org/1_2_x/components/accesscontrol/authorizers.html
--
Renaud Richardet
COO America
Wyona Inc. - Open Source Content Management - Apache Lenya
office +1 857 776-3195 mobile +1 617 230 9112
[EMAIL PROTECTED] http://www.wyona.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]