[xwiki-users] Checking programming rights
Hi everybody! I have a code with full form XWQL statements (select ...). I want to include this code in my custom panel. I saved panel as a admin user (with enabled programming rights). If I look panel at it own page (opened http://localhost:8080/xwiki/bin/view/Panels/MyPanel) - all is looking perfectly - it gave my results. But If I enable panel in XWiki (put it via Panel Wizard at right-side of a screen) - I received an error on it: Caused by: org.xwiki.query.QueryException: Full form XWQL statements requires programming right. Query statement = ... What's the difference? Maybe I should re-save some other pages with programming rights? How is it possible to find needed pages? -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/Checking-programming-rights-tp7106250p7106... Sent from the XWiki- Users mailing list archive at Nabble.com.
On Sun, Dec 18, 2011 at 7:38 PM, Eugen Colesnicov <[email protected]> wrote:
Hi everybody!
I have a code with full form XWQL statements (select ...). I want to include this code in my custom panel. I saved panel as a admin user (with enabled programming rights). If I look panel at it own page (opened http://localhost:8080/xwiki/bin/view/Panels/MyPanel) - all is looking perfectly - it gave my results.
But If I enable panel in XWiki (put it via Panel Wizard at right-side of a screen) - I received an error on it: Caused by: org.xwiki.query.QueryException: Full form XWQL statements requires programming right. Query statement = ...
What's the difference? Maybe I should re-save some other pages with programming rights? How is it possible to find needed pages?
The difference is this https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwik... i.e. anything that is rendered after the document content doesn't have programming rights. This includes panels. See http://jira.xwiki.org/browse/XWIKI-6823 . Hope this helps, Marius
-- Best regards Eugen Colesnicov
-- View this message in context: http://xwiki.475771.n2.nabble.com/Checking-programming-rights-tp7106250p7106... Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
Marius Dumitru Florea wrote
On Sun, Dec 18, 2011 at 7:38 PM, Eugen Colesnicov <ecolesnicov@> wrote: i.e. anything that is rendered after the document content doesn't have programming rights. This includes panels. See http://jira.xwiki.org/browse/XWIKI-6823 .
Thanks Marius! As a result - I rewrited my code in a panel page for refusing Programming Rights. -- Best regards Eugen Colesnicov -- View this message in context: http://xwiki.475771.n2.nabble.com/Checking-programming-rights-tp7106250p7107... Sent from the XWiki- Users mailing list archive at Nabble.com.
participants (2)
-
Eugen Colesnicov -
Marius Dumitru Florea