monitoring/security: Require monitoring/command/feature/instance permission for toggling instance features

This commit is contained in:
Eric Lippmann 2015-01-30 09:58:10 +01:00
parent d19e36d937
commit 7dbb8c6841
1 changed files with 1 additions and 0 deletions

View File

@ -191,6 +191,7 @@ class ToggleInstanceFeaturesCommandForm extends CommandForm
*/
public function onSuccess()
{
$this->assertPermission('monitoring/command/feature/instance');
foreach ($this->getValues() as $feature => $enabled) {
$toggleFeature = new ToggleInstanceFeatureCommand();
$toggleFeature