8000 chore: hide workspace creation UI for users without permission by jaaydenh · Pull Request #16871 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content

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 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 13 commits into from
Apr 3, 2025
Prev Previous commit
Next Next commit
fix: fix test
  • Loading branch information
jaaydenh committed Apr 2, 2025
commit 352b29bb9e16a1bcc53d3ea29f5feb651e78b549
4 changes: 2 additions & 2 deletions site/src/pages/TemplatePage/TemplatePageHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export type TemplatePageHeaderProps = {
template: Template;
activeVersion: TemplateVersion;
permissions: AuthorizationResponse;
orgPermissions: OrganizationPermissions;
orgPermissions: OrganizationPermissions | undefined;
onDeleteTemplate: () => void;
};

Expand All @@ -180,7 +180,7 @@ export const TemplatePageHeader: FC<TemplatePageHeaderProps> = ({
<PageHeader
actions={
<>
{!template.deprecated && orgPermissions.createWorkspaces && (
{!template.deprecated && orgPermissions?.createWorkspaces && (
<Button
variant="contained"
startIcon={<AddIcon />}
Expand Down
0