vcl-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jftho...@apache.org
Subject svn commit: r1787090 - /vcl/trunk/web/.ht-inc/xmlrpcWrappers.php
Date Wed, 15 Mar 2017 18:25:00 GMT
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))



Mime
View raw message