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.
It would be incredibly useful to be able to make a view such as admin/content with the ability to show only nodes that the user can update. With the core admin/content page, you have a giant list of nodes you can view, but cannot edit.
This functionality would add a View filter to narrow a listing of content down to only what the user can edit.
Comment | File | Size | Author |
---|---|---|---|
#4 | group_gnode-views-filter-for-update-access_2854963-4.patch | 2.77 KB | Anonymous (not verified) |
| |||
#2 | group_gnode-views-filter-for-update-access_2854963.patch | 2.75 KB | Anonymous (not verified) |
|
Comments
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commentedvilepickle created an issue. See original summary.
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedWe're using this in a project within a custom module at the moment, just figured it would be useful.
Comment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedComment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedFixing a bad dependency
Comment #5
kristiaanvandeneyndeWhile I agree that this would be a great functionality to have, I have to play the devil's advocate here: Would this not better be a core feature? Where you would be able to set the query metadata 'op' under Advance > Query options to specify that you're building a view of 'update' nodes?
Comment #6
Anonymous (not verified) CreditAttribution: Anonymous commentedI agree that this could be in core for normal nodes as well. The patch I have here has some group specific stuff in it though with the 'gid', so even though a core version of this would be cool, wouldn't the group implementation still be necessary? I guess I don't know enough about why there's a core "View" version of this filter and no update one.
Comment #7
kristiaanvandeneyndeGroup implements the node access system (grants/access records). That system gets added automatically to views by core. So if we provide the functionality in core, Group will benefit from it automatically.
Comment #8
GaëlGHere's a module for this need: https://www.drupal.org/project/views_node_access_filter
Comment #9
kristiaanvandeneynde