Skip to content

Commit

Permalink
Merge pull request #1363 from AllenBW/bug/master/#1536124-rbac-group-…
Browse files Browse the repository at this point in the history
…switch-update

Fetch new users (group) authorizations rather than loading from session storage
  • Loading branch information
himdel authored Jan 19, 2018
2 parents 9c9a5d8 + 4053183 commit 09f39ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions client/app/core/navigation/navigation-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ export function NavigationController (Text, Navigation, Session, API_BASE, Shopp

function success () {
Session.setGroup(group)
Session.loadUser()
Session.getUserAuthorizations()
vm.user = Session.currentUser
$state.go($state.current, {}, {reload: true})
$state.go('dashboard', {}, {reload: true})
}

function failure (response) {
Expand Down
3 changes: 2 additions & 1 deletion client/app/core/session.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ export function SessionFactory ($http, $sessionStorage, $cookies, RBAC, Polling)
requestWsToken: requestWsToken,
destroyWsToken: destroyWsToken,
setPause: setPause,
updateUserSession: updateUserSession
updateUserSession: updateUserSession,
getUserAuthorizations: getUserAuthorizations
}

destroy()
Expand Down

0 comments on commit 09f39ad

Please sign in to comment.