Hi Caleb,

On 03/25/2010 02:11 PM, Caleb James DeLisle wrote:
> Hello all,
> 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)

except for the fact that I'm not very fond of adding new API to what we should 
refactor to clean & fix, I'm fine with this API.

Here's my +0.

Happy hacking,
Anca

>
> They save, load or delete the document if the script's contentAuthor has the 
> necessary permission, the user in
> context is switched so the contentAuthor is listed as having done the 
> operation.
>
> Though they say *AsAuthor the action will take place in the name of the 
> contentAuthor of the document
> this is mainly because *AsContentAuthor is long and confusing.
>
> This is already partially available if the script has programming access but 
> I think it is an important
> enough feature that it should not be limited to scripts with programming 
> access.
> Use case: allowing users to submit information without letting them see or 
> modify what other users had submitted.
>
> This is my +1
>
> Caleb
>
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to