You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2025. It is now read-only.
When the current user is being editted in the administrator view, the navbar with the current permission does not update.
Weird bug happens because for some random reason, featherClient.reAuthenticate has to be done twice in order to get the updated information of the current user.
This idea came from #45 where a user has been updated by an after hook and needs to be refreshed in order to redirect the user to the page where authguard will take effect.
Some idea of implementation is around: coordinator/UserModal.js
consthandleSave=()=>{const{ perms }=modalStateservices.users.patch(user._id,{ perms })// Update User Permission in interface if same userif(authUser._id===user._id){dispatch(signIn(true))}}
The text was updated successfully, but these errors were encountered:
There was a tiny fix introduced in not sure when (git blame says #58, but that is refactoring). The fix was to do a forceUpdate, this is only a temporary fix that works in some cases but not al
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
bugSomething isn't workingclientclient related issue
When the current user is being editted in the administrator view, the navbar with the current permission does not update.
Weird bug happens because for some random reason,
featherClient.reAuthenticate
has to be done twice in order to get the updated information of the current user.This idea came from #45 where a user has been updated by an after hook and needs to be refreshed in order to redirect the user to the page where authguard will take effect.
Some idea of implementation is around:
coordinator/UserModal.js
The text was updated successfully, but these errors were encountered: