Fix the permission for the toggle object feature assertion

fixes #9198
This commit is contained in:
Alexander Fuhr 2015-05-04 14:39:12 +02:00
parent ab0b478e4f
commit 993cb31572

View File

@ -30,7 +30,7 @@ class ToggleObjectFeaturesCommandForm extends ObjectsCommandForm
*/ */
public function createElements(array $formData = array()) public function createElements(array $formData = array())
{ {
$toggleDisabled = $this->hasPermission('monitoring/command/feature/instance') ? null : ''; $toggleDisabled = $this->hasPermission('monitoring/command/feature/object') ? null : '';
$this->addElements(array( $this->addElements(array(
array( array(
'checkbox', 'checkbox',