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 <[email protected]> Authored: Tue Oct 25 16:35:18 2016 -0400 Committer: Suresh Marru <[email protected]> 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 }};
