Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 8e0f47a8b -> 4eec7b23c


fixing sharing disabled condition not checked issue


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/4eec7b23
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/4eec7b23
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/4eec7b23

Branch: refs/heads/develop
Commit: 4eec7b23c5fe37d224e81fb6abe2e70aa049dfc4
Parents: 8e0f47a
Author: scnakandala <supun.nakand...@gmail.com>
Authored: Thu Sep 22 14:11:28 2016 -0400
Committer: scnakandala <supun.nakand...@gmail.com>
Committed: Thu Sep 22 14:11:40 2016 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/4eec7b23/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php 
b/app/libraries/ExperimentUtilities.php
index 8b4b195..49bcd19 100755
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -825,7 +825,9 @@ class ExperimentUtilities
             
CommonUtilities::print_error_message('AiravataSystemException!<br><br>' . 
$ase->getMessage());
         }
 
-        ExperimentUtilities::share_experiment($expId, json_decode($share));
+        if(Config::get('pga_config.airavata')["data-sharing-enabled"]){
+            ExperimentUtilities::share_experiment($expId, json_decode($share));
+        }
 
         return $expId;
     }

Reply via email to