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

Add permission check during hydration of insights store #8533

Merged
merged 2 commits into from Oct 7, 2021

Conversation

licitdev
Copy link
Member

@licitdev licitdev commented Oct 4, 2021

Fixes #8517.

@licitdev
Copy link
Member Author

licitdev commented Oct 4, 2021

@rijkvanzanten just realised that there might be race condition for permissionStore. Hmm how would you suggest improving? May I shift permissionStore to be hydrated right after userStore?

@licitdev licitdev marked this pull request as draft October 4, 2021 14:45
@rijkvanzanten
Copy link
Member

May I shift permissionStore to be hydrated right after userStore?

That's the only way we can do it! Seeing that other stores' hydration is now reliant on permissions existing, we have to make sure we fetch that before attempting to hydrate the other stores

@licitdev licitdev marked this pull request as ready for review October 4, 2021 16:12
@rijkvanzanten rijkvanzanten merged commit c84c9b3 into directus:main Oct 7, 2021
@licitdev licitdev deleted the fix/dashboard-hydration branch October 15, 2021 05:30
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request to /dashboards results in error 403 during page launch
2 participants