admin/accounts: clearer 'admin' option in case of inheritance
Massimo Melina committed
Oct 25, 2024 at 12:35 UTC
2a10f8c270f3e76d913c7d6833f5ff668f114388
1 file changed
+1
-1
admin/src/AccountForm.ts
+1
-1
@@ -70,7 +70,7 @@ export default function AccountForm({ account, done, groups, addToBar, reload }:
70
helperText: values.ignore_limits ? "Speed limits don't apply to this account" : "Speed limits apply to this account" },
71
{ k: 'admin', comp: BoolField, fromField: (v:boolean) => v||null, label: "Admin-panel access", xs: 12, sm: 6, xl: 8,
72
helperText: "To access THIS interface you are using right now",
73
- ...!account.admin && account.adminActualAccess && { value: true, helperText: "This permission is inherited" },
73
+ ...!account.admin && account.adminActualAccess && { value: true, disabled: true, helperText: "This permission is inherited. To disable it, act on the groups." },
74
},
75
{ k: 'disable_password_change', comp: BoolField, fromField: x=>!x, toField: x=>!x, label: "Allow password change", xs: 'auto' },
76
group && h(Alert, { severity: 'info' }, `To add users to this group, select the user and then click "Inherit"`),