You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by ma...@apache.org on 2019/06/03 16:40:29 UTC

[airavata-php-gateway] branch develop updated: Changed user enabled to map to ACTIVE state

This is an automated email from the ASF dual-hosted git repository.

machristie pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/airavata-php-gateway.git


The following commit(s) were added to refs/heads/develop by this push:
     new 5660f40  Changed user enabled to map to ACTIVE state
5660f40 is described below

commit 5660f40d74402345d36bf920018fc0253817d792
Author: Marcus Christie <ma...@iu.edu>
AuthorDate: Mon Jun 3 12:40:19 2019 -0400

    Changed user enabled to map to ACTIVE state
---
 app/libraries/IamAdminServicesUtilities.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/libraries/IamAdminServicesUtilities.php b/app/libraries/IamAdminServicesUtilities.php
index 086e6f1..5a32736 100644
--- a/app/libraries/IamAdminServicesUtilities.php
+++ b/app/libraries/IamAdminServicesUtilities.php
@@ -39,7 +39,7 @@ class IamAdminServicesUtilities {
         $user_profiles = IamAdminServices::getUsersWithRole($authz_token, $role_name);
         $users = [];
         foreach ($user_profiles as $user_profile) {
-            array_push($users, (object)["firstName"=>$user_profile->firstName,"lastName"=>$user_profile->lastName,"email"=>implode(",",$user_profile->emails),"userName"=>$user_profile->userId, "userEnabled"=>$user_profile->State == Status::CONFIRMED]);
+            array_push($users, (object)["firstName"=>$user_profile->firstName,"lastName"=>$user_profile->lastName,"email"=>implode(",",$user_profile->emails),"userName"=>$user_profile->userId, "userEnabled"=>$user_profile->State == Status::ACTIVE]);
         }
         return $users;
     }
@@ -48,4 +48,4 @@ class IamAdminServicesUtilities {
         return Keycloak::getAdminAuthzToken();
     }
 }
- ?>
\ No newline at end of file
+ ?>