-
Notifications
You must be signed in to change notification settings - Fork 27
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
Pass access_token to namespace getter #1746
Pass access_token to namespace getter #1746
Conversation
CannonLock
commented
Nov 15, 2024
- Fixes register buttons for non admin users
- Fixes register buttons for non admin users
- Fixes register buttons for non admin users
@@ -69,7 +69,7 @@ const AuthenticatedContent = ({ | |||
if (data && checkAuthentication) { | |||
return checkAuthentication(data); | |||
} else { | |||
return data?.authenticated !== undefined; | |||
return !!data?.authenticated; |
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.
Note this fixes another issue that I saw where the previous solution would consider you authenticated even if data.authenticated == false.
@CannonLock - could you please create a write-up of the underlying issue itself for posterity? |
- Fixes register buttons for non admin users
https://docs.google.com/document/d/1z6VgMSGXzO49keZenvYTS2xAXGkFsyHWZTjFONum2Ew/edit?usp=sharing TLDR: Things likely got tested using Federation in a box which carried over the auth cookies to the director which hid missing functionality |
could you take a look at the failed linter test |