Skip to content

Commit

Permalink
fix: error when visiting 'Groups' tab in security
Browse files Browse the repository at this point in the history
  • Loading branch information
kinglozzer committed Jun 24, 2024
1 parent 1519f3d commit fd20ff3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Extensions/SecurityAdminExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ public function updateEditForm(Form $form)
{
/** @var GridField $gridField */
$gridField = $form->Fields()->dataFieldByName('users');
if (!$gridField) {
return;
}
$gridField->getConfig()
->addComponent(new GridFieldMasqueradeButton());
}
Expand Down

0 comments on commit fd20ff3

Please sign in to comment.