Skip to content

Commit

Permalink
BAH-3971 | Fixing code merge issue. Provider - user association was b…
Browse files Browse the repository at this point in the history
…roken (#992)
  • Loading branch information
angshu authored Jul 31, 2024
1 parent 7e687c1 commit e7f9d19
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ui/app/common/auth/authentication.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ angular.module('authentication')
userService.getProviderForUser(data.results[0].uuid).then(function (providers) {
if (!_.isEmpty(providers.results) && hasAnyActiveProvider(providers.results)) {
$rootScope.currentUser = new Bahmni.Auth.User(data.results[0]);
$rootScope.currentUser.provider = providers.results[0];
var location = $bahmniCookieStore.get(Bahmni.Common.Constants.locationCookieName);
if (location) {
$rootScope.currentUser.currentLocation = location.name;
Expand Down

0 comments on commit e7f9d19

Please sign in to comment.