Skip to content
Snippets Groups Projects
Commit 34629b2f authored by Rajab Natshah's avatar Rajab Natshah Committed by Jürgen Haas
Browse files

Issue #3348413 by Rajab Natshah: Fix Entity queries must explicitly set...

Issue #3348413 by Rajab Natshah: Fix Entity queries must explicitly set whether the query should be access checked or not in DRD Agent
parent 0f097c51
No related branches found
No related tags found
1 merge request!5Issue #3348413: Fix Entity queries must explicitly set whether the query should be access checked or not in DRD Agent
......@@ -171,6 +171,7 @@ class Requirements extends Base {
$admin_roles = $this->entityTypeManager->getStorage('user_role')
->getQuery()
->condition('is_admin', TRUE)
->accessCheck(FALSE)
->execute();
} catch (InvalidPluginDefinitionException $e) {
} catch (PluginNotFoundException $e) {
......@@ -186,6 +187,7 @@ class Requirements extends Base {
/** @noinspection NullPointerExceptionInspection */
$count_admin = $query
->countQuery()
->accessCheck(FALSE)
->execute()
->fetchField();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment