On Sun, Mar 4, 2012 at 4:19 AM, Brian Forsythe <[email protected]> wrote:
Running 3.3 I've tried several times to include a groovy macro in a panel and it always results in "org.xwiki.rendering.macro.MacroExecutionException: You don't have the right to execute this script", although my id has programming rights.
So... I simplified, creating a Groovy macro consisting solely of a simple 'println "* This is groovy."'. Same results. The odd thing is that it works fine when I'm viewing the preferences page (/xwiki/bin/admin/XWiki/XWikiPreferences), but nowhere else.
Some sort of rights issue, or is this a misleading exception? A known bug? Any help would be... mmm.. helpful?
Panels are not currently allowed to execute code with programming rights. You have to options: 1. Load the panel asynchronously (i.e. in a separate request than the request loading the page) 2. Modify contentview.vm and remove/comment out the line $xcontext.dropPermissions() which forbids programming rights for any code evaluated after the page content (which includes code from panels). Hope this helps, Marius
_______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users