|  
                               
                               
                              
                               
                              | Difficulty: |  
                              Unknown Easy  |  
                                
                               
                              | Description: |  
                              For example, the following
  {code} {{velocity}} #set ($batchId = "5cfabdc7-ecdd-49f3-90ba-a3fce03e0de2") $services.refactoring.restore($batchId) {{/velocity}} {code}
  produces the error
  {code} The author [null] of this script is not allowed to restore document [xwiki:Level1.WebHome()] with ID [11] {code}
   The request is initialized with the current user, but not the author. When you don't have programming right, #execute() will reset the right, bit this time it does set the author (and fix the request).
   Same problem with the other #restore API and might be true with other methods of RefactoringScriptService. 
  The request is created with the current user, but not the author.  |  
                                
                              
                                 |