freeipa-webui
freeipa-webui copied to clipboard
Adapt field permissions on the fields (when data has been normalized)
When retrieving settings parameters from a specific user, some are undefined values.
After those are normalized (that will be solved in another task/issue), the readOnly
parameters of some fields should be properly adapted.
E.g.:
const { value, readOnly } = getParamProperties({
name: "<ipa-name-here>",
ipaObject: props.ipaObject,
metadata: props.metadata,
objectName: "user",
});
// (...)
<SecondaryButton
onClickHandler={() => setIsOpen(true)}
isDisabled={readOnly} // <---- `isDisabled` takes the permission's value
>
Add
</SecondaryButton>
Fields to apply this:
- 'Certificate mapping data' (User)