#79309Deleting of a page by a non-admin user throws exception
Description
Somehow only admins can delete pages. I checked access module and pages can be modified (created, moved, renamed, etc.). Everything works, except deleting the page.
This exception is thrown:
Exception An exception occurred while executing 'SELECT COUNT(`uid`) FROM `be_groups` WHERE (`pid` IN (:dcValue1)) AND (`be_groups`.`deleted` = 0)' with params ["40"]: PHP Warning: Invalid argument supplied for foreach() in E:\xampp\htdocs\site.com\web\typo3_src-8.5.1\vendor\doctrine\dbal\lib\Doctrine\DBAL\SQLParserUtils.php line 178