[xwiki-users] Permission issue - viewing user rights being used for script execution instead of those from who saved the page

Tiago Rinck Caveden caveden at gmail.com
Thu Jun 26 14:38:47 CEST 2008


Hello!

In my wiki, I've saved a page that can be visualized by everybody, included
non logged users. The edition is restricted to logged users, though.
However, in this page I added a little script that changes some object
values when the page is viewed and then saves it. If somebody not logged try
to simply view the page, he receives an exception saying he doesn't have
rights for it.

IMHO, the script execution should be done with the rights of the person that
saved it.. In this case, I would like everybody that can view the page to be
able to execute the script and save the page in the terms I've decided in
the script.

Despite which is the best approach, is there any workaround for my case that
does not include allowing anonymous edition of the page?

Thank you very much,
-- 
Tiago Rinck Caveden
http://caveden.multiply.com


More information about the users mailing list