I'd like to make this change:

Add to xwiki.api.Document
saveAsAuthor()
saveAsAuthor(String comment)
saveAsAuthor(String connent, String isMinorEdit)
deleteAsAuthor()

Add to xwiki.api.XWiki
getDocumentAsAuthor(DocumentReference reference)
getDocumentAsAuthor(String fullName)

I created an issue for it and posted a patch
http://jira.xwiki.org/jira/browse/XWIKI-5041
http://jira.xwiki.org/jira/secure/attachment/16920/XWIKI-4952-CommentAddActionSupportCaptcha.patch

The context user is momentarily switched to the content author of the document 
in the context before doing
the action.

I think the script editor should be responsible for the api method calls 
because they can only be called
from script. I also see a lot of potential benefit in allowing a script to 
manipulate documents which it's
viewers cannot save. I think this will reduce the amount of pages requiring 
programming rights.

WDYT?

Caleb

_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to