You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@vcl.apache.org by jf...@apache.org on 2017/03/15 18:25:00 UTC
svn commit: r1787090 - /vcl/trunk/web/.ht-inc/xmlrpcWrappers.php
Author: jfthomps
Date: Wed Mar 15 18:25:00 2017
New Revision: 1787090
URL: http://svn.apache.org/viewvc?rev=1787090&view=rev
Log:
VCL-1022 - API function XMLRPCgetRequestConnectData shows Administrator account for all imaging reservations
xmlrpcWrappers.php: modified XMLRPCgetRequestConnectData: added to conditional checking for reservation being "forimaging" to also check that OStype is windows
Modified:
vcl/trunk/web/.ht-inc/xmlrpcWrappers.php
Modified: vcl/trunk/web/.ht-inc/xmlrpcWrappers.php
URL: http://svn.apache.org/viewvc/vcl/trunk/web/.ht-inc/xmlrpcWrappers.php?rev=1787090&r1=1787089&r2=1787090&view=diff
==============================================================================
--- vcl/trunk/web/.ht-inc/xmlrpcWrappers.php (original)
+++ vcl/trunk/web/.ht-inc/xmlrpcWrappers.php Wed Mar 15 18:25:00 2017
@@ -833,7 +833,7 @@ function XMLRPCgetRequestConnectData($re
$connectMethods = getImageConnectMethodTexts(
$requestData["reservations"][0]["imageid"],
$requestData["reservations"][0]["imagerevisionid"]);
- if($requestData["forimaging"])
+ if($requestData["forimaging"] && $requestData['reservations'][0]['OStype'] == 'windows')
$thisuser = 'Administrator';
else
if(preg_match('/(.*)@(.*)/', $user['unityid'], $matches))