airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [04/50] [abbrv] airavata-php-gateway git commit: fixed object access
Date Wed, 27 Jul 2016 17:05:12 GMT
fixed object access


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

Branch: refs/heads/develop
Commit: fb5c7e3d7adcfb2d9df7175652b7285319fc7478
Parents: f48ef42
Author: Jeff Kinnison <jeffdkinnison@gmail.com>
Authored: Mon Jul 11 15:22:51 2016 -0400
Committer: Jeff Kinnison <jeffdkinnison@gmail.com>
Committed: Mon Jul 11 15:22:51 2016 -0400

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php | 4 ++--
 app/libraries/ProjectUtilities.php    | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/fb5c7e3d/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index 58a3863..8b3c0b8 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -1316,14 +1316,14 @@ class ExperimentUtilities
         $rrevoke = array();
 
         foreach ($users as $user => $perms) {
-            if ($perms['write']) {
+            if ($perms->write) {
                 $wadd[$user] = ResourcePermissionType::WRITE;
             }
             else {
                 $wrevoke[$user] = ResourcePermissionType::WRITE;
             }
 
-            if ($perms['read']) {
+            if ($perms->read) {
                 $radd[$user] = ResourcePermissionType::READ;
             }
             else {

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/fb5c7e3d/app/libraries/ProjectUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ProjectUtilities.php b/app/libraries/ProjectUtilities.php
index eeb0cb5..0c15b9b 100644
--- a/app/libraries/ProjectUtilities.php
+++ b/app/libraries/ProjectUtilities.php
@@ -279,14 +279,14 @@ class ProjectUtilities
         $rrevoke = array();
 
         foreach ($users as $user => $perms) {
-            if ($perms['write']) {
+            if ($perms->write) {
                 $wadd[$user] = ResourcePermissionType::WRITE;
             }
             else {
                 $wrevoke[$user] = ResourcePermissionType::WRITE;
             }
 
-            if ($perms['read']) {
+            if ($perms->read) {
                 $radd[$user] = ResourcePermissionType::READ;
             }
             else {


Mime
View raw message