Now that we are checking access for CRUD operations #1995048: EntityListController::getOperations() should respect access checks what should we do about the 'enable' and 'disable' operation added in ConfigEntityListController::getOperations(). They are only added if they have a status key in their annotation.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | enable-and-disable-access-2029319-3.patch | 689 bytes | internetdevels |
Comments
Comment #1
tim.plunkettTagging.
Comment #2
berdirI think we should also check for update access there, should be a very simple patch. Have a look at the referenced issue.
Comment #3
internetdevels commentedAdded check for update access.
Comment #4
berdirYes, something like that. We should probably have some basic test coverage for this, we have a ConfigEntityListTest that we could extend.
The problem is that the ConfigTestAccessController does not implement any access control at all, so we would have to add add/update/delete permissions to config_test.module and check those in the access controller. Then we can check that users can only see the operations they're allowed to by default.
Comment #5
alexpottI agree with #4 we need tests :)
Comment #6
xano#2200183: Add ConfigEntityAccessController fixes this and is RTBC as well.
Comment #7
xano