Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
configuration entity system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
14 May 2013 at 21:00 UTC
Updated:
29 Jul 2014 at 22:20 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettNeeds a test.
Comment #2
berdirJust noticed this on contact categories. Do we just want to use those and make sure they don't have a disable operation or do we need a test entity type for this?
Comment #3
twistor commentedStabbing at some tests.
Comment #4
andypostjust needs test and review all configurables
Comment #5
twistor commentedCross-post.
Comment #6
twistor commentedI'm not sure if this is too much of a hack or not, but it illustrates the problem.
Off to review all configurables.
Comment #7
twistor commentedThis patch fixes the bug for:
ShortcutListController doesn't call parent::getOperations(). Not sure if that's a bug.
BlockListController doesn't call getOperations() at all.
Comment #8
tim.plunkettI think fixing both BlockListController and ShortcutListController deserve separate issues. (And yes, they probably need to be fixed.)
Comment #9
twistor commentedFollowups:
#1995046: BlockListController doesn't call parent::getOperations() and so "delete" is the default dropbutton operation
#1995048: EntityListController::getOperations() should respect access checks
Comment #10
twistor commentedComment #11
berdirAs pointed out in #1856556: Convert user contact form into a contact category/bundle, it seems to we should do entity access checks by default for the edit and delete operations. That will require us to add an access controller for all config entities that use this but we want that for other things anyway I guess, e.g route access checks.
Maybe there already is an issue for that?
Comment #12
tim.plunkettI retitled #1995048: EntityListController::getOperations() should respect access checks since it actually was doing what #11 described
Comment #13
alexpottCommitted 66e6eb8 and pushed to 8.x. Thanks!