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
(cherry picked from commit 09f39ad)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1536468
  • Loading branch information
himdel authored and simaishi committed Jan 19, 2018
1 parent 1d0be64 commit bb8b8c2
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 bb8b8c2

Please sign in to comment.