freeipa-webui icon indicating copy to clipboard operation
freeipa-webui copied to clipboard

Adapt field permissions on the fields (when data has been normalized)

Open carma12 opened this issue 1 year ago • 0 comments

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)

carma12 avatar Oct 31 '23 09:10 carma12