- ๐บ๐ธUnited States jhedstrom Portland, OR
At a minimum this needs some tests to confirm expected behavior, especially since it is changing the actual access call. This could also potentially be implemented as a separate module, since the access hook needs to only return TRUE from a single hook, not all hooks...
# 19 - the same here. Tested with entity refrence field and enabled 'Create (read-only) own value for field field_list_type' but creator still can change it, even he is not admin.
I can confirm # 16 woks for drupal 9 sites, However does not work for D10 (my current is 10.1.3)
So when I use the same module on D9 site it works as expected (patch #16). However the same does not work on D10. No issues in log, just it is not disabled (greyed out)
Any idea what was changed in D10 in term of permissions ?
- Status changed to Active
9 months ago 8:54am 26 September 2023 - ๐ฎ๐ณIndia gaurav_manerkar Vasco Da Gama, Goa
Hook
hook_field_widget_form_alter
is deprecated in Drupal 10
see change record - https://www.drupal.org/node/3180429 โ - Status changed to Needs work
9 months ago 3:32pm 10 October 2023 - ๐ฌ๐งUnited Kingdom AaronMcHale Edinburgh, Scotland
In general disabled (or โgreyed outโ) form fields are not good from an accessibility perspective. I would strongly advise against their use.
reroll #13 for Drupal 10 according to #25
Will not work with Drupal 9- Status changed to Needs review
4 months ago 6:15am 14 February 2024 - ๐ฎ๐ณIndia gaurav_manerkar Vasco Da Gama, Goa
We need to support D9 until support is dropped from module itself.
Review MR - https://git.drupalcode.org/project/field_permissions/-/merge_requests/23 - ๐ฎ๐ณIndia gaurav_manerkar Vasco Da Gama, Goa
Covered unit test for read only permissions.
Merge request !23 from #30 created additional issue described here. Rollback was needed.
3440233 ๐ Call to undefined method getEntity() Active
@van.dordafog thank you your patch #28 works fine for D10.2.5.
However as I already mentioned - #31 - Merge request is not working at all.
- ๐ฎ๐นItaly Giuseppe87
On Drupal 10.2.x the MR works fine, but with a standard form. I haven't tried the setup of the related issue.
However looking at the code
$op = $form_state->getFormObject()->getEntity()->isNew() ? 'create' : 'edit';
is both in the MR and in the patch #28, so it's strange that the patch works while the MR doesn't. - Status changed to RTBC
2 days ago 4:47am 24 June 2024 - Gaurav Gupta Jaipur, Rajasthsan
Hello i have tested the MR23 and it is working fine
Thanks