Pascal Voitot wrote:
> hello,
> I would like to write some scripts which do some more complex SQL extraction
> requests using for example $xwiki.search(sql)... no modif of the DB, just
> extraction for presentation... I would prefer not to be forced to code a new
> Java module just for this...
> 
> But this function is protected by programming rights...
> So I must give programming rights to allow people to view this page... I
> find a bit disturbing because programming rights have a "sensitive" meaning
> in my head...

You don't have to give programming rights to the *viewers* of such pages, only 
to the *authors*. When $xwiki.search() is executed, the rights of the page 
author are checked, not the ones of the current user (viewer).

Happy coding and using xwiki,
Anca Luca

> 
> What's your point of view about this? What's the lightest, cleverest and
> fairest way to allow this? Any advice? :)
> 
> regards
> Pascal
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to