Allow changing the allow ssh and update shcmea

This commit is contained in:
Owen
2026-08-17 14:06:26 -04:00
parent 87a3e5ceea
commit a74b0934fc
4 changed files with 5 additions and 10 deletions
+3 -7
View File
@@ -506,20 +506,16 @@ export function RoleForm({
<OptionSelect<"allow" | "disallow">
options={allowSshOptions}
value={
sshDisabled
? "disallow"
: field.value
? "allow"
: "disallow"
field.value
? "allow"
: "disallow"
}
onChange={(v) => {
if (sshDisabled) return;
field.onChange(
v === "allow"
);
}}
cols={2}
disabled={sshDisabled}
/>
<FormDescription>
{t("roleAllowSshDescription")}