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

This commit is contained in:
b-saikrishnakanth 2025-11-28 16:14:43 +05:30 committed by GitHub
parent c685042a47
commit dbc5a6348d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

View file

@ -411,6 +411,7 @@ export function ProjectDetailsForm(props: IProjectDetailsForm) {
}}
error={Boolean(errors.timezone)}
buttonClassName="border-none"
disabled={!isAdmin}
/>
</>
)}

View file

@ -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;