- Issue created by @siriussolutions
- First commit to issue fork.
- Status changed to Needs review
12 months ago 5:14am 13 December 2023 - 🇮🇳India viren18febS
Hi @siriussolutions
i have added the patch fir the fixes. please review
Thankd
After install site's returning the following error when attempting to access /user in Drupal 10.1.7:
Drupal\Core\Entity\Query\QueryException: Entity queries must explicitly set whether the query should be access checked or not. See Drupal\Core\Entity\Query\QueryInterface::accessCheck(). in Drupal\Core\Entity\Query\Sql\Query->prepare() (line 141 of /home/public_html/****/core/lib/Drupal/Core/Entity/Query/Sql/Query.php).
Have queries over entities changed in the User Disk Quota module
With basic accessCheck(FALSE) or pass the needed access check for admins or selected user roles and permissions.
(Quick fix) in user_disk_quota.module Change line 378 from:
$query = \Drupal::entityQueryAggregate('file');
to
$query = \Drupal::entityQueryAggregate('file')->accessCheck(TRUE);
Needs review
1.0
Code
Hi @siriussolutions
i have added the patch fir the fixes. please review
Thankd