Forums / Developer / Fetch all classes a user can read
H-Works Agency
Wednesday 13 July 2011 10:40:56 am
Hi everybody,
How is it possible to simply retrieve a list of all classes a user can read ?
Should we write a new function of is there a specific method.
My final interest is to be able to fetch all readable classes for current user without having to feed the class identifier to a "canRead" function.
EZP is Great
André R.
Thursday 14 July 2011 1:05:01 pm
It's no such function I think, and it will have to be placement specific right?
What is the use case? Usually users are more interested in what content they can read, and that is something that comes out of the box in many ways.
eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription @: http://twitter.com/andrerom
Friday 15 July 2011 10:58:43 am
Ok thank you i will create my own function...in fact i need to know what classes a user can read - due to policies - under a certain node.