From e0a539fc6ac2e49adfd925d4e2ac5132ae4d2975 Mon Sep 17 00:00:00 2001
From: Rafael Monnerat <rafael@nexedi.com>
Date: Thu, 31 Jul 2014 11:23:31 +0200
Subject: [PATCH] slapos_cloud: Use Computer Owner instead current logged user
 when create an event

Only the ownder has access to the computer for perform such query, and depending of the logged user prevents us automation.
---
 .../scripts/Computer_requestSoftwareReleaseChange.xml           | 2 +-
 master/bt5/slapos_cloud/bt/revision                             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/computer_slap_interface_workflow/scripts/Computer_requestSoftwareReleaseChange.xml b/master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/computer_slap_interface_workflow/scripts/Computer_requestSoftwareReleaseChange.xml
index 0445d0f0a..64c2fbfde 100644
--- a/master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/computer_slap_interface_workflow/scripts/Computer_requestSoftwareReleaseChange.xml
+++ b/master/bt5/slapos_cloud/WorkflowTemplateItem/portal_workflow/computer_slap_interface_workflow/scripts/Computer_requestSoftwareReleaseChange.xml
@@ -103,7 +103,7 @@ else:\n
     url_string=software_release_url,\n
     aggregate=computer.getRelativeUrl(),\n
     activate_kw={\'tag\': tag},\n
-    destination_section=portal.ERP5Site_getAuthenticatedMemberPersonValue().getRelativeUrl()\n
+    destination_section=computer.getSourceAdministration()\n
   )\n
 \n
 # Change desired state\n
diff --git a/master/bt5/slapos_cloud/bt/revision b/master/bt5/slapos_cloud/bt/revision
index 059361f24..1a7d3a1c8 100644
--- a/master/bt5/slapos_cloud/bt/revision
+++ b/master/bt5/slapos_cloud/bt/revision
@@ -1 +1 @@
-317
\ No newline at end of file
+318
\ No newline at end of file
-- 
2.30.9