airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndo...@apache.org
Subject [1/2] airavata-php-gateway git commit: Fix for AIRAVATA-2153
Date Thu, 13 Oct 2016 19:50:56 GMT
Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 926d55ac1 -> 12827c150


Fix for AIRAVATA-2153


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/cd911764
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/cd911764
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/cd911764

Branch: refs/heads/develop
Commit: cd9117642430b329f39c69ba540591cc312ee13e
Parents: 926d55a
Author: Nipurn Doshi <nipunhere@gmail.com>
Authored: Thu Oct 13 12:39:27 2016 -0700
Committer: Nipurn Doshi <nipunhere@gmail.com>
Committed: Thu Oct 13 12:39:27 2016 -0700

----------------------------------------------------------------------
 app/libraries/AdminUtilities.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/cd911764/app/libraries/AdminUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/AdminUtilities.php b/app/libraries/AdminUtilities.php
index d958dba..c930425 100644
--- a/app/libraries/AdminUtilities.php
+++ b/app/libraries/AdminUtilities.php
@@ -66,10 +66,10 @@ class AdminUtilities
             $gateway->gatewayName = $gatewayData["gatewayName"];
             $gateway->declinedReason = $gatewayData["declinedReason"];
         }
-            
+        
         if( isset($gatewayData["createTenant"])){
             if( AdminUtilities::add_tenant( $gateway) )
-                $gateway->gatewayApprovalStatus = GatewayApprovalStatus::CREATED;
+                $gateway->gatewayApprovalStatus = GatewayApprovalStatus::APPROVED;
         }
         elseif( isset( $gatewayData["denyRequest"])){
             $gateway->gatewayApprovalStatus = GatewayApprovalStatus::DENIED;
@@ -77,7 +77,7 @@ class AdminUtilities
         }
         elseif( isset( $gatewayData["updateGateway"])){
 
-            $gateway->gatewayApprovalStatus = GatewayApprovalStatus::APPROVED;
+            //$gateway->gatewayApprovalStatus = GatewayApprovalStatus::APPROVED;
             $gateway->oauthClientId = $gatewayData["oauthClientId"];
             $gateway->oauthClientSecret = $gatewayData["oauthClientSecret"];
         }


Mime
View raw message