Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
A lot of the log properties defined in hook_entity_property_info_alter() have 'setter permission' => 'administer log module'
.
This is causing issues when trying to create/update logs via the RESTful Web Services module API endpoint. Only users with the 'administer log module' permission are able to use the API to interact with Log entities.
A better approach would be to create an access callback for log properties which checks user-level permission to create or edit the log entity. Then we can remove 'setter permission'
and add 'access callback'
to use that instead.
Comments
Comment #3
m.stentaDone.