Removed edit-in-place options from Import views on imported rows.
authorEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 2 Apr 2023 02:48:29 +0000 (14:48 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Sun, 2 Apr 2023 03:15:07 +0000 (15:15 +1200)
commit3be398f67a002a89df405b25667c99586036ff21
treed7711ec92d6d00cc8b9db2460c0abe10d403f208
parentd098b5983024eea1f98de5f325f8bcb0870d182f
Removed edit-in-place options from Import views on imported rows.

It's confusing to the user to be able to edit the records when they
are already imported. This is not a real security thing - more
of a UI thing - but Coleman recommends implementing through
checkAccess. I did leave open the back door of being able to edit it
if the status is now present as there isn't a real reason they shouldn't -
just that it is confusing to present edit-in-place, except when they could
edit & re-try the import
ext/civiimport/Civi/Api4/Import.php
ext/civiimport/Civi/Api4/Import/CheckAccessAction.php [new file with mode: 0644]