Forums / General / List of nodes a users can edit or read
John Smith
Tuesday 23 March 2010 5:30:07 am
Is there any way in templates, I can get a list of nodes a current logged in user can edit?
Hakim Bouras
Wednesday 24 March 2010 4:51:49 am
Hi John,
Maybe the "limitation" parameter of the list fetch could do the trick but since it is not documented....
You can still check each node once you are in the loop using the "can_edit " attribute of the node such as :
{if $node.can_edit }
do something
{/if}
Cheers,
Hakim BourasPRISMALOG - Creation de site Internet
Nicolas Pastorino
Wednesday 24 March 2010 4:59:51 am
This parameter is, from what i know and have played with it, to emulate a user's access rights, instead of using the current user's access rights.
Other than that, as you are saying Hakim, i am afraid the "loop over all concerned nodes and check one by one" method should be used..
Cheers !
-- Nicolas Pastorino Director Community - eZ Member of the Community Project Board eZ Publish Community on twitter: http://twitter.com/ezcommunity t : http://twitter.com/jeanvoye G+ : http://plus.tl/jeanvoye