Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Aug 2014 at 07:25 UTC
Updated:
6 Oct 2014 at 10:40 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
undertext commentedComment #2
undertext commentedComment #3
dawehnerGreat!
Comment #4
m1r1k commentedComment #5
herom commentedWe should probably typehint on "\Drupal\Core\Access\AccessManagerInterface"
Comment #6
undertext commentedYeap. You are right.
Comment #7
herom commentedThat was it.
Comment #8
alexpottThis feels related to #2322809: Do not depend on event subscribers for security: Tighten routing security by access checking in matchRequest - if the access is checked by the router perhaps we don't need to do this?
Comment #9
dawehner@alexpott
Well, access is already checked during every request, with a quite small tiny possible time, when access is not checked. The access manager though
is used in more places than just routing of the current request. For example when you generate things like a link, having the access manager available
would be also a big gain. Making access checking easy should certainly be done.
Comment #10
dawehnerGiven my previous response ...
Comment #11
alexpottWe're missing a test in
\Drupal\Tests\Core\DrupalTestComment #12
jeroentAdded a test for the accessmanager method.
Patch attached.
Comment #13
jeroentComment #14
jeroentComment #15
dawehnerGood point, alex
Comment #16
alexpottCommitted e3f8efb and pushed to 8.0.x. Thanks!