Skip to content

feat: split cli roles edit command into create and update commands #17121

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

Merged
merged 11 commits into from
Apr 4, 2025
Prev Previous commit
Next Next commit
fix: fix build errors
  • Loading branch information
brettkolodny committed Apr 3, 2025
commit f6559b3b04da64c7bbc81d624a3f9d24dd54e36c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const CreateWorkspacePageExperimental: FC = () => {
const permissionsQuery = useQuery(
templateQuery.data
? checkAuthorization({
checks: workspacePermissionChecks(templateQuery.data.organization_id),
checks: workspacePermissionChecks(templateQuery.data.organization_id, me.id),
})
: { enabled: false },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ import {
useMemo,
useState,
} from "react";
import { Link } from "react-router-dom";
import {
getFormHelpers,
nameValidator,
onChangeTrimmed,
} from "utils/formUtils";
import {
type AutofillBuildParameter,
Expand Down Expand Up @@ -258,7 +256,7 @@ export const CreateWorkspacePageViewExperimental: FC<
<hgroup>
<h2 className="text-xl font-semibold m-0">General</h2>
<p className="text-sm text-content-secondary mt-0">
{permissions.createWorkspaceForUser
{permissions.createWorkspace
? "Only admins can create workspaces for other users."
: "The name of your new workspace."}
</p>
Expand Down Expand Up @@ -305,7 +303,7 @@ export const CreateWorkspacePageViewExperimental: FC<
</div>
</div>
</div>
{permissions.createWorkspaceForUser && (
{permissions.createWorkspace && (
<div className="flex flex-col gap-2 flex-1">
<Label className="text-sm" htmlFor={`${id}-workspace-name`}>
Owner
Expand Down
Loading