Skip to content
Snippets Groups Projects
Commit 84ff82a0 authored by Nishant Kumar's avatar Nishant Kumar Committed by Daniel Moberly
Browse files

Issue #3365850 by Nishant: Access check error on questions-answers/moderation

parent 40f93a10
No related branches found
No related tags found
1 merge request!5Access check error
......@@ -83,7 +83,7 @@ class ModerationQueueForm extends FormBase {
];
// Load the unapproved/reported questions.
$query = $this->entityTypeManager->getStorage('questions_answers_question')->getQuery();
$query = $this->entityTypeManager->getStorage('questions_answers_question')->getQuery()->accessCheck();
$orCondition = $query->orConditionGroup()
->condition('status', 0, '=')
->condition('reported_count', 0, '>');
......@@ -102,7 +102,7 @@ class ModerationQueueForm extends FormBase {
}
// Load the unapproved answers.
$query = $this->entityTypeManager->getStorage('questions_answers_answer')->getQuery();
$query = $this->entityTypeManager->getStorage('questions_answers_answer')->getQuery()->accessCheck();
$orCondition = $query->orConditionGroup()
->condition('status', 0, '=')
->condition('reported_count', 0, '>');
......
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