Skip to content

armgit / plane

Public Imported from GitHub
0

πŸ”₯πŸ”₯πŸ”₯ Open-source Jira, Linear, Monday, and ClickUp alternative. Plane is a modern project management platform to manage tasks, sprints, docs, and triage.

fix: disable timezone selection button for non-admin users (#8195)

b-saikrishnakanthdbc5a6348db8
diff --git a/apps/web/core/components/project/form.tsx b/apps/web/core/components/project/form.tsx
index 0ac99e4c11..1e4af65db6 100644
--- a/apps/web/core/components/project/form.tsx
+++ b/apps/web/core/components/project/form.tsx
@@ -411,6 +411,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {
}}
error={Boolean(errors.timezone)}
buttonClassName="border-none"
+ disabled={!isAdmin}
/>
</>
)}
diff --git a/apps/web/core/hooks/use-timezone.tsx b/apps/web/core/hooks/use-timezone.tsx
index 488fa69409..1f2661642b 100644
--- a/apps/web/core/hooks/use-timezone.tsx
+++ b/apps/web/core/hooks/use-timezone.tsx
@@ -59,11 +59,6 @@ const useTimezone = () => {
query: "utc, coordinated universal time",
content: "UTC",
},
- {
- value: "Universal",
- query: "universal, coordinated universal time",
- content: "Universal",
- },
];
const selectedTimezone = (value: string | undefined) => options.find((option) => option.value === value)?.content;