TickTackk
Well-known member
- Affected version
- 2.1.8
In file
should be
src/XF/Admin/Controller/Option.php
PHP:
public function actionGroupDelete(ParameterBag $params)
{
$group = $this->assertGroupExists($params['group_id']);
if (!$group->canEdit())
{
return $this->noPermission();
}
/** @var \XF\ControllerPlugin\Delete $plugin */
$plugin = $this->plugin('XF:Delete');
return $plugin->actionDelete(
$group,
$this->buildLink('options/groups/delete', $group),
$this->buildLink('options/groups/edit', $group),
$this->buildLink('options/groups'),
$group->title
);
}
PHP:
public function actionGroupDelete(ParameterBag $params)
{
$group = $this->assertGroupExists($params['group_id']);
if (!$group->canEdit())
{
return $this->noPermission();
}
/** @var \XF\ControllerPlugin\Delete $plugin */
$plugin = $this->plugin('XF:Delete');
return $plugin->actionDelete(
$group,
$this->buildLink('options/groups/delete', $group),
$this->buildLink('options/groups/edit', $group),
$this->buildLink('options'),
$group->title
);
}