Skip to content
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

Open
wants to merge 5 commits into
base: develop
Choose a base branch
from

Conversation

Josephine-Rutten
Copy link
Contributor

Added message to people without permissions and made sure permission were deleted when logging out

Copy link
Contributor

@YotaYota YotaYota left a 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 :)

public/components/Callback.test.js Outdated Show resolved Hide resolved
public/components/Callback.js Outdated Show resolved Hide resolved
public/contexts/AuthTokenContext.js Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Nov 26, 2024

setInfoMessage("You're logged in.");
window.location.replace("/");
} else {
putPermissions(data);
Copy link
Contributor

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 []?

Copy link
Contributor Author

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.

@YotaYota
Copy link
Contributor

YotaYota commented Nov 26, 2024

LGTM 👍 just a rebase I suppose?

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.

2 participants