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

chore: hide workspace creation UI for users without permission#16871

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
jaaydenh merged 13 commits intomainfromjaaydenh/workspace-creation
Apr 3, 2025

Conversation

jaaydenh
Copy link
Contributor

@jaaydenhjaaydenh commentedMar 10, 2025
edited
Loading

@jaaydenhjaaydenhforce-pushed thejaaydenh/workspace-creation branch from03acbe3 to124bf93CompareMarch 10, 2025 22:44
@github-actionsgithub-actionsbot added the staleThis issue is like stale bread. labelMar 19, 2025
@jaaydenhjaaydenh reopened thisMar 26, 2025
@jaaydenhjaaydenh requested a review fromaslilacMarch 26, 2025 11:38
@jaaydenhjaaydenh marked this pull request as ready for reviewMarch 26, 2025 11:38
@jaaydenhjaaydenh removed the staleThis issue is like stale bread. labelMar 26, 2025
Copy link
Member

@aslilacaslilac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

maybe we should move the check I mentioned into modules/permissions so that it's more visible. maybe modules/permissions/workspaces.ts?

I definitely think we should keep this it's own thing, rather than tying to theorganizationPermissions query. other than that it all looks good!

Comment on lines 118 to 125
createWorkspaces: {
object: {
resource_type: "workspace",
organization_id: organizationId,
owner_id: "*",
},
action: "create",
},
Copy link
Member

@aslilacaslilacMar 27, 2025
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

this isn'treally related to the rest of the permissions in this query.

we have a query in pages/CreateWorkspacePage/permissions.ts that could be used for this already (it's the exact same permission check, just by itself)

jaaydenh reacted with thumbs up emoji
Copy link
ContributorAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

moved to modules/permissions/workspaces.ts

@jaaydenhjaaydenh requested a review fromaslilacApril 1, 2025 22:39
@jaaydenhjaaydenhforce-pushed thejaaydenh/workspace-creation branch from363e6bb to6544543CompareApril 1, 2025 22:39
@jaaydenhjaaydenhforce-pushed thejaaydenh/workspace-creation branch from636bf9c to3ecc9d9CompareApril 2, 2025 14:49
@jaaydenhjaaydenh merged commitb60934b intomainApr 3, 2025
29 checks passed
@jaaydenhjaaydenh deleted the jaaydenh/workspace-creation branchApril 3, 2025 10:14
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsApr 3, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@aslilacaslilacaslilac approved these changes

Assignees

@jaaydenhjaaydenh

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

A user with the organizations workspace creation ban role should not see any UI to create workspaces
2 participants
@jaaydenh@aslilac

[8]ページ先頭

©2009-2025 Movatter.jp