feat(auth): added auth hook to know user roles#132
Draft
SIMOUNIX wants to merge 4 commits intogetnao:mainfrom
Draft
feat(auth): added auth hook to know user roles#132SIMOUNIX wants to merge 4 commits intogetnao:mainfrom
SIMOUNIX wants to merge 4 commits intogetnao:mainfrom
Conversation
SIMOUNIX
commented
Feb 5, 2026
Standlc
requested changes
Feb 6, 2026
Collaborator
Standlc
left a comment
There was a problem hiding this comment.
Thanks for your contribution!
However, based on the settings.organization.tsx component, I'll move this PR to draft until it can be implemented in the app.
c1473b3 to
beac337
Compare
Contributor
Author
|
Hi @Standlc, if the empty / default organization page is the issue I can remove it and start working on it in a separate MR. It is just that I felt we needed something like this to render conditionally the frontend (not to display organization settings to a common user for example). Anyway, I wanted to ask few questions:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I have not found in frontend anything regarding user role so I am proposing this in order to implement the organization frontend that might render differently based on user roles. This could be use everywhere we need to disable button or whatever for example.
Tanstack query ensure that the data is cached and shared among components.