Skip to content
Permalink
Browse files
Merge branch 'AIRAVATA-2571-email-verified'
  • Loading branch information
machristie committed Jan 4, 2018
2 parents cb0a276 + 9e22a81 commit 092026e0891226408125e03d67a6ec45a39f759d
Showing 1 changed file with 2 additions and 1 deletion.
@@ -1,4 +1,5 @@
<?php
use Airavata\Model\User\Status;

class IamAdminServicesUtilities {

@@ -33,7 +34,7 @@ public static function getUsersWithRole($role_name) {
$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]);
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]);
}
return $users;
}

0 comments on commit 092026e

Please sign in to comment.