Needs work
Project:
Drupal core
Version:
main
Component:
views.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
26 Jan 2016 at 14:31 UTC
Updated:
9 Jun 2025 at 05:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
edurenye commentedI propose to use a Trait as we can not modify ActionInterface.
This is the first approach.
What do you think?
Comment #3
swentel commentedComment #11
duneblThis patch needs at least a reroll and a review
Comment #12
hardik_patel_12 commentedRe-roll for 8.8.x-dev.
Comment #13
duneblThis patche apply cleanly, but it doesn't remove actions for which the current user doesn't have access.
Exemple:
Under
/admin/peoplethere is the 'cancel user' action (coming from a 'bulk operation' field in a view).A user without the right to delete other users will see this action (trying to using it will trigger an error).
The purpose of this patch should be to avoid that.
Am I missing something?
Comment #14
joachim commentedNothing's using this trait...?
Also, don't all actions involve entities? Couldn't this be added to the plugin base class instead?
Also, sounds like this needs tests.
Comment #16
damienmckennaAs a reminder, the "assigned" field is for indicating you're actively working on an issue, once you're finished you should change it back to "unassigned".
Comment #17
SomeIntern commentedreroll of #12 for 9.4.x
Comment #18
SomeIntern commentedfixing my reroll
Comment #19
SomeIntern commentedreroll of #12 for 9.4.x
Comment #20
SomeIntern commentedupdated patch in #19
Comment #21
SomeIntern commentedupdated patch in #20
Comment #22
joachim commentedShould be 'entity type' in comments.
Do we need this option? We're the only caller and we know we want a boolean.
I don't really understand why this method doesn't just go in the Action plugin base class? All actions operate on entities, so checking access is always relevant.
Comment #26
mstrelan commentedBulkForm was moved to views.module in #2916451: Move everything related to Bulk Form to Views module, updating component