|
@@ -213,7 +213,7 @@ class OAuthProxyListener implements ListenerInterface
|
|
|
|
|
|
if(isset($filter['tenancyId']) && $filter['tenancyId'] != 1) {
|
|
|
$tenancy = array(
|
|
|
- array('id' => 1,'name' => 'Tenencia Base',),
|
|
|
+ array('id' => 1,'name' => 'Tenencia Base',),
|
|
|
array('id' => (int) $filter['tenancyId'], 'name' => 'Tenancy Fix'));
|
|
|
} else {
|
|
|
$tenancy = array(array(
|
|
@@ -222,7 +222,9 @@ class OAuthProxyListener implements ListenerInterface
|
|
|
));
|
|
|
}
|
|
|
|
|
|
- $auth_info['tenancies'] = $auth_info['tenancyCurrent'] = $tenancy;
|
|
|
+ $auth_info['tenancies'] = $tenancy;
|
|
|
+ $auth_info['tenancyCurrent'] = end($tenancy);
|
|
|
+
|
|
|
return $this->createCustomOAuthUser($username, $accessToken, $auth_info);
|
|
|
}
|
|
|
}
|