Closed (fixed)
Project:
Commerce Core
Version:
8.x-2.x-dev
Component:
Payment
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2017 at 14:47 UTC
Updated:
17 Nov 2017 at 12:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
ransomweaver commentedComment #3
ransomweaver commentedComment #4
mglamanThe route has permission definitions. Shouldn't core filter out that route?
Nope.
\Drupal\Core\Render\Element\Operations -> \Drupal\Core\Render\Element\Dropbutton -> links theme hook -> template_preprocess_links
Nowhere in the rendering does it check link access before rendering. Nor does the Link render element which gets defined in the build array. Both
field_ui_entity_operationandcontent_translation_entity_operationcheck access before returning a link.So I guess this is the right way.
Comment #5
mglamanThe actual permission is
administer commerce_paymentComment #6
ransomweaver commentedTrue!
Comment #7
ransomweaver commentedComment #8
bojanz commentedThanks!