Problem/Motivation

I don't wanna add Recycle bin in all Bundle or entity if I choose a specific bundle, the user can't see any content for non selected entity
they get access denied for page or node or taxonomy not selected in setting for Recycle bin

Comments

Ahmad Alyasaki created an issue. See original summary.

ahmad-alyasaki’s picture

Status: Active » Needs review
StatusFileSize
new709 bytes

I had no idea why in entity access hook with operation view check for a selected bundle if it's not in the selected setting, return access forbidden

nkoporec’s picture

Hi, yea this seems like a bug, could you update the patch and instead of deleting the code just add return AccessResult:: neutral() ?

That way the the execution will be faster since it will return early.

ahmad-alyasaki’s picture

I think you are right, here is the new patch

nkoporec’s picture

Status: Needs review » Fixed

committed, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.