Repository: airavata-php-gateway Updated Branches: refs/heads/develop 7afb1ddbd -> 33cfc5b38
changing user_pending to user-pending 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/33cfc5b3 Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/33cfc5b3 Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/33cfc5b3 Branch: refs/heads/develop Commit: 33cfc5b38088d542901838d7a88bb60790ea4319 Parents: 7afb1dd Author: scnakandala <[email protected]> Authored: Mon May 2 18:00:46 2016 -0400 Committer: scnakandala <[email protected]> Committed: Mon May 2 18:00:46 2016 -0400 ---------------------------------------------------------------------- app/controllers/AccountController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/33cfc5b3/app/controllers/AccountController.php ---------------------------------------------------------------------- diff --git a/app/controllers/AccountController.php b/app/controllers/AccountController.php index 599ab7b..6f47048 100644 --- a/app/controllers/AccountController.php +++ b/app/controllers/AccountController.php @@ -64,15 +64,15 @@ class AccountController extends BaseController WSIS::registerUserAccount($username, $password, $email, $first_name, $last_name, $organization, $address, $country, $telephone, $mobile, $im, $url, Config::get('pga_config.wsis')['tenant-domain']); - /*add user to role - user_pending */ + /*add user to role - user-pending */ $allRoles = WSIS::getAllRoles(); - if(! in_array( "user_pending", $allRoles)){ - WSIS::addRole( "user_pending"); + if(! in_array( "user-pending", $allRoles)){ + WSIS::addRole( "user-pending"); } //$userRoles = (array)WSIS::getUserRoles( $username); - $userRoles["new"] = "user_pending"; + $userRoles["new"] = "user-pending"; $userRoles["deleted"] = array(); WSIS::updateUserRoles( $username, $userRoles);
