monitoring/security: Require monitoring/command/feature/instance permission for toggling instance features
This commit is contained in:
parent
d19e36d937
commit
7dbb8c6841
|
@ -191,6 +191,7 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
|
||||||
*/
|
*/
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
|
$this->assertPermission('monitoring/command/feature/instance');
|
||||||
foreach ($this->getValues() as $feature => $enabled) {
|
foreach ($this->getValues() as $feature => $enabled) {
|
||||||
$toggleFeature = new ToggleInstanceFeatureCommand();
|
$toggleFeature = new ToggleInstanceFeatureCommand();
|
||||||
$toggleFeature
|
$toggleFeature
|
||||||
|
|
Loading…
Reference in New Issue