Add granular permissions for deleting scheduled transitions

Created on 21 September 2019, almost 5 years ago
Updated 15 April 2024, 2 months ago

Currently, the only way for allowing users to delete scheduled transitions, the administer scheduled transitions permission has to be given. This also gives access to the scheduled transitions settings form, which is not always the desired behavior.

Just as there are per entity type & bundle permissions for "view" and "add" operations, I think it would be logical to provide the same for "delete" operations.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium rp7

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¬πŸ‡§United Kingdom mjmorley

    Added a patch here to update the hook update number so it applies to 2.4.x

  • πŸ‡§πŸ‡ͺBelgium falc0

    Had an error:
    Error: Call to undefined method Drupal\node\Entity\Node::isProcessed() in Drupal\scheduled_transitions\ScheduledTransitionsAccessControlHandler->checkAccess() (line 55 of /app/web/modules/contrib/scheduled_transitions/src/ScheduledTransitionsAccessControlHandler.php).

    Fixed it in the latest patch (see interdiff).

Production build 0.69.0 2024