Problem/Motivation
When creating a workflow view for a user to find content that they are able to moderate, it would be nice to be able to filter for a given state (eg, Published) that a user can moderate content to.
For instance, if the user has access to 10 nodes, but 3 of them are in a state from which they don't have permission to move to Published, those could be filtered out
via this new filter.
Proposed resolution
Add a Views filter that takes into account the current user's access to transitions to one or more states.
The UI would present a list of to states (Published, Draft, etc).
The filter would then loop through transitions to those states and filter only content in the available transition's from state.
Remaining tasks
User interface changes
API changes
Data model changes
Comments
Comment #3
wim leersThis sounds like node grants, not permissions.
(Of course, that doesn't exist for all entity types, so for other entity types, it'd need to be permission-based.)
Comment #4
dawehnerAt least for node grants there is a filter in views, which allows you to filter by nodes which you have edit access for. Maybe
content_moderationcould implement node grants for edit ...Comment #5
jhedstromIt's trickier than just edit permissions though. For instance, a reviewer might be able to transition a node from one state to another, but not edit it.
Comment #10
jantoine commented@jhedstrom,
We worked on a patch to the existing filter that I believe adds this functionality at #3053757: Optionally filter views results by the states a user has permissions for.. Is that a duplicate of this issue or does that not fulfill your requirements?