A strength of Visualforce's apex:inputField
is that it automatically respects the view/edit permissions that come from the profile/permission sets for both the object and the fields.
I'm assuming Lightning Web Component's lightning-input-field
incorporates that mechanism too, but haven't found confirmation of that by Googling. Does it?