You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sm...@apache.org on 2016/10/28 14:17:41 UTC

[7/7] airavata-php-gateway git commit: AIRAVATA-2181 Null checking sharing data

AIRAVATA-2181 Null checking sharing data

Sharing data won't exist when user doesn't have access to the
experiment.


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

Branch: refs/heads/develop
Commit: 31a70432b352e4cf81b7805d3d2ed09323da437f
Parents: f4cd14c
Author: Marcus Christie <ma...@iu.edu>
Authored: Tue Oct 25 16:35:18 2016 -0400
Committer: Suresh Marru <sm...@apache.org>
Committed: Fri Oct 28 10:17:19 2016 -0400

----------------------------------------------------------------------
 app/views/partials/experiment-info.blade.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/31a70432/app/views/partials/experiment-info.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/experiment-info.blade.php b/app/views/partials/experiment-info.blade.php
index 08fca8e..2bba34c 100644
--- a/app/views/partials/experiment-info.blade.php
+++ b/app/views/partials/experiment-info.blade.php
@@ -357,7 +357,7 @@
 </div>
 @endif
 
-@if(Config::get('pga_config.airavata')["data-sharing-enabled"])
+@if(Config::get('pga_config.airavata')["data-sharing-enabled"] and isset($can_write))
     @if($can_write === true)
     @include('partials/sharing-form-modal')
     @endif
@@ -365,7 +365,7 @@
 @section('scripts')
 @parent
 {{ HTML::script('js/time-conversion.js')}}
-@if(Config::get('pga_config.airavata')["data-sharing-enabled"])
+@if(Config::get('pga_config.airavata')["data-sharing-enabled"] and isset($users) and isset($owner))
     <script>
         var users = {{ $users }};
         var owner = {{ $owner }};