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
Merge branch 'main' into brett-14239/refactor-cli-roles-edit-command
  • Loading branch information
brettkolodny committed Apr 4, 2025
commit c21e49bcea1309b587024f2dbd4f0d2f2088f409
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, me.id),
checks: createWorkspaceChecks(templateQuery.data.organization_id),
})
: { enabled: false },
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,7 @@ import {
useMemo,
useState,
} from "react";
import {
getFormHelpers,
nameValidator,
} from "utils/formUtils";
import { getFormHelpers, nameValidator } from "utils/formUtils";
import {
type AutofillBuildParameter,
getInitialRichParameterValues,
Expand Down Expand Up @@ -255,7 +252,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.createWorkspace
{permissions.createWorkspaceForAny
? "Only admins can create workspaces for other users."
: "The name of your new workspace."}
</p>
Expand Down Expand Up @@ -302,7 +299,7 @@ export const CreateWorkspacePageViewExperimental: FC<
</div>
</div>
</div>
{permissions.createWorkspace && (
{permissions.createWorkspaceForAny && (
<div className="flex flex-col gap-2 flex-1">
<Label className="text-sm" htmlFor={`${id}-workspace-name`}>
Owner
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.