-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added message to people without permissions #137
base: develop
Are you sure you want to change the base?
Added message to people without permissions #137
Conversation
… were deleted when logging out
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice fix, but please no permissions handling in AuthTokenContext :)
Quality Gate passedIssues Measures |
setInfoMessage("You're logged in."); | ||
window.location.replace("/"); | ||
} else { | ||
putPermissions(data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we putPermissions
here, when data has no length? Or is it setting []
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's setting []. I also thought about not setting it, but I think it's better we save it empty so we know we don't have to request it anymore. If you have a different logic on it, let me know.
LGTM 👍 just a rebase I suppose? |
Added message to people without permissions and made sure permission were deleted when logging out