Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix(UI): redirect if user is not permissioned to see workspace#6786

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Kira-Pilot merged 4 commits intomainfromredirect-to-workspaces/kira-pilot
Mar 27, 2023

Conversation

Kira-Pilot
Copy link
Member

resolves#4704

We've added a new hook,useReadPagePermissions to determine if a user has permissions to view a certain page. This hook can be used in tandem with our existingRequirePermission component such that a user without permissions is redirected to/workspaces.

Note: we did have a pre-existing hook,usePermissions that loads all the permissions we query for in ourauthMachine; however, I added this secondary hook for more fine-grained control. It is nice to have individual pages load their own permissions, and certain resources are permissioned by ID.

For now, I've added redirects to the/workspace page and to the/audit page. If you notice other places in the app that need them, let me know!

Kapture 2023-03-24 at 14 44 02

@Kira-PilotKira-Pilot merged commitfc21e15 intomainMar 27, 2023
@Kira-PilotKira-Pilot deleted the redirect-to-workspaces/kira-pilot branchMarch 27, 2023 13:25
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsMar 27, 2023
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

Assignees

@Kira-PilotKira-Pilot

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Resource not found or you do not have access to this resource
2 participants
@Kira-Pilot@BrunoQuaresma

[8]ページ先頭

©2009-2025 Movatter.jp