EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Fix #6529 / #6732 : Check if entity is Accessible before processActions in EntityFactory

Open octoseth opened this issue 1 year ago • 5 comments

Hi, Today I encountered issues #6529 and #6732 in a project, so I propose this fix.

This pull request includes changes to the EntityFactory class in the src/Factory/EntityFactory.php file. The main update is the addition of an accessibility check for entities before processing actions, which ensures that only accessible entities are processed.

Entity accessibility check:

  • src/Factory/EntityFactory.php: Added a check to skip processing for entities that are not accessible in the processActionsForAll method.

octoseth avatar Jan 29 '25 23:01 octoseth

Thanks, your fix works! How is this not merged yet?

sonofliberty avatar Jun 03 '25 04:06 sonofliberty

Hi @javiereguiluz can you please look at this PR? This bugs affected many projects. Thx :)

tito10047 avatar Aug 22 '25 08:08 tito10047

Any news about this merge? I need to use setEntityPermission but is not working with version 4.25

kikwik avatar Oct 09 '25 00:10 kikwik