There is no macro block author / owner directly associated afaik. What you have is a "source" meta data on the XDOM (that contains the macro block) which specifies the document the content (including the macro) comes from. The author of the source document is considered the author of the macro, but in practice this is not true most of the time as you can edit a document without touching the macros. Vincent and ThomasM know best how macro blocks work but unfortunately both are in holidays right now. On the same topic, if I understood correctly, ThomasD handled the macro author / owner "issue" in his branch for signed scripts (to fix programming rights issues) by adding a signature object to the document containing the (script) macro. The signature includes the last author and he makes sure the signature is updated whenever the (script) macro content is edited. Hope this helps, Marius On Tue, Aug 13, 2013 at 2:07 PM, Christian Meunier <christian.meunier@magelo.com> wrote:
Little bump in case a dev can help me out on this one.
Thanks in advance !
On 8/11/2013 02:19, Christian Meunier wrote:
Thomas or someone else, any hint on how i can retrieve who is the owner of the current macro block ? I injected the Execution component in order to get the ExecutionContext in the hope that it should help me figure out who is the owner of the macro block and if he has programming right or not. I cant seem to find a way to know the author...
Thanks in advance for your help !
-- Chris
_______________________________________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/mailman/listinfo/devs