Unverified Commit e4b4b431 authored by heddn's avatar heddn
Browse files

Issue #3232208 by Igor Mashevskyi, Matroskeen, heddn: Access checking must be...

Issue #3232208 by Igor Mashevskyi, Matroskeen, heddn: Access checking must be explicitly specified on entity query
parent ee0e4e06
......@@ -52,6 +52,9 @@ class MigrationGroup extends ConfigEntityBase implements MigrationGroupInterface
public function delete() {
// Delete all migrations contained in this group.
$query = \Drupal::entityQuery('migration')
// Access check false because if the user has access to deleting
// migration groups they should have access to deleting related migration.
->accessCheck(FALSE)
->condition('migration_group', $this->id());
$names = $query->execute();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment