This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Roles and policies
expandshrink

Roles and policies

Roles and policies

Thursday 18 October 2012 12:21:41 pm - 2 replies

Hi Everybody,
I would like to know the best practice from eZPublish with regards to roles and policies.
I have 3 type of users who have diffrent types of Create, Read, Update and Write rights.
1. Admin
2. Company
3. Employees
We have sub menus showing the create or update link. I would like to hide or show these links without writing any code if possible.
Thanks for any help in advance

Thursday 18 October 2012 2:13:20 pm

Hi Shoaib,

In the template of your sub menu, just add conditions :

-   {if $node.can_read} your_link {/if}

-   {if $node.can_edit} your_link {/if}

-   {if $node.can_remove} your_link {/if}

Thursday 18 October 2012 4:38:47 pm

Thank you Paul

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from