AIRAVATA-2170 Project edit submission might not have sharing settings

Only owners can update sharing settings. Users with write access to a
shared project can change the project but on form submission only the
project name and description will be POSTed.


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

Branch: refs/heads/develop
Commit: 68932f2721b425dffa748c4b10ea24f9c1d3c4a5
Parents: 88c9bdf
Author: Marcus Christie <machr...@iu.edu>
Authored: Mon Oct 17 11:12:44 2016 -0400
Committer: Marcus Christie <machr...@iu.edu>
Committed: Mon Oct 17 11:12:44 2016 -0400

----------------------------------------------------------------------
 app/libraries/ProjectUtilities.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/68932f27/app/libraries/ProjectUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ProjectUtilities.php 
b/app/libraries/ProjectUtilities.php
index ea65ddb..4f26782 100755
--- a/app/libraries/ProjectUtilities.php
+++ b/app/libraries/ProjectUtilities.php
@@ -218,7 +218,7 @@ class ProjectUtilities
             
CommonUtilities::print_error_message('AiravataSystemException!<br><br>' . 
$ase->getMessage());
         }
 
-        if (Config::get('pga_config.airavata')["data-sharing-enabled"]){
+        if (Config::get('pga_config.airavata')["data-sharing-enabled"] && 
array_key_exists('share-settings', $_POST)){
             $share = $_POST['share-settings'];
             ProjectUtilities::share_project($projectId, json_decode($share));
         }

Reply via email to