Forums / Developer / Assigning policies on the fly in a session
Clemens T
Tuesday 18 April 2006 5:23:00 am
Heya all,I'd like an anonymous user to get a temporary window to read a file on my site. I believe the most elegant way to do it is to temporarily 'give' the user a policy which is saved in his session.
Any thought/ideas/helpful comments?
Thanks a lot,Clemens
Tuesday 25 April 2006 1:45:27 pm
Anyone?
Kristian Hole
Tuesday 25 April 2006 10:43:12 pm
You could make a module in an extension which switches eZ publish user for that user when accessed. (Or even a template operator)
Module tutorial here:http://ez.no/products/ez_publish/documentation/development/extensions/module/module_tutorial_part_1
Kristian http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute
Kristof Coomans
Tuesday 25 April 2006 11:41:01 pm
Policies of the current user are cached inside the AccessArray session variable, so you can change that on the fly.
Interesting approach... Can you post your solution when it's ready? :)
independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org
Wednesday 26 April 2006 3:39:00 pm
Thanks Kristof, I got a lead now... will get back if I get some sort of solution.