Affects Version/s: 7.4
Fix Version/s: None
The idea would be to use this macro when you need to run some code using the passed user. For example:
- Imagine some server calling remotely (using HTTP) a wiki page inside an XWiki server, without any authentication. Now imagine that thus guest user need to access some other page that is view-protected (because it contains sensitive data).
Note 1: this macro would require PR.
Note 2: we could name it differently. Alternative proposals:
FTR I had to implement this and I did it like this, in velocity (I didn't put a #try since I wanted exception throwing but ideally we'd need a try/finally):