Currently a user will get a "scheduled" tab on their profile page if they have permission to "schedule publishing of {type}", that is they are allowed to enter scheduling dates for the entity type in question.
However, this could be unnecessarily restrictive, and there is a use case where the user has permission to view scheduled content (maybe scheduled by someone with higher authority) but does not have permission to enter/edit those dates. In this case, currently, they would not get any scheduled tab on their user page, even if they do have content which has been scheduled by another user.
The proposal is to allow access to the user view if the user has either of the Scheduler permissions for the entity type, not just the one permission.
The equivalent change for viewing another users page is also appropriate.
Issue fork scheduler-3272548
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
jonathan1055 commentedThe first run will fail, to demonstrate the relaxing of conditions, but without the test being chnaged.
Comment #4
jonathan1055 commentedTwo failures for testViewScheduledContentUser as expected -
Current response status code is 200, but 403 expectedComment #6
jonathan1055 commentedMerged.