Skip to content

Conversation

@CannonLock
Copy link
Contributor

  • Fixes register buttons for non admin users

- Fixes register buttons for non admin users
@CannonLock CannonLock requested a review from h2zh November 15, 2024 18:49
- Fixes register buttons for non admin users
return checkAuthentication(data);
} else {
return data?.authenticated !== undefined;
return !!data?.authenticated;
Copy link
Contributor Author

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.

@bbockelm
Copy link
Collaborator

@CannonLock - could you please create a write-up of the underlying issue itself for posterity?

- Fixes register buttons for non admin users
@CannonLock
Copy link
Contributor Author

CannonLock commented Nov 15, 2024

@CannonLock - could you please create a write-up of the underlying issue itself for posterity?

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

@h2zh
Copy link
Contributor

h2zh commented Nov 19, 2024

could you take a look at the failed linter test

@CannonLock CannonLock merged commit 9d1c26f into PelicanPlatform:main Nov 19, 2024
19 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants