After upgrading to Nagvis 1.9.47, this error message is shown if editing a map and adding a new object:
"Cannot edit HTML. Please contact your administrator"
Seems to be due to a recent update in the permissions management, affecting CoreAuthorisationHandler.php and ViewMapAddModify.php
NagVis/nagvis@5baf87d
Specifically, an "editHtml" permission tag was added.
I was able to get a quick fix working by editing library/nagvis-includes/CoreAuthorisationModIcingaweb2.php , and adding the editHtml permission when Icinga Web has the nagvis/edit permission:
if ($this->auth->hasPermission('nagvis/edit')) {
$perms['ManageShapes'] = array('manage' => array('*' => true));
$perms['ManageBackgrounds'] = array('manage' => array('*' => true));
$perms['Overview']['edit'] = array('*' => true);
$perms['Map']['add'] = array('*' => true);
$perms['Map']['edit'] = array('*' => true);
$perms['Map']['manage'] = array('*' => true);
$perms['Map']['editHtml'] = array('*' => true); # <-- new permission
}
(lines 57-65)
After upgrading to Nagvis 1.9.47, this error message is shown if editing a map and adding a new object:
"Cannot edit HTML. Please contact your administrator"
Seems to be due to a recent update in the permissions management, affecting CoreAuthorisationHandler.php and ViewMapAddModify.php
NagVis/nagvis@5baf87d
Specifically, an "editHtml" permission tag was added.
I was able to get a quick fix working by editing library/nagvis-includes/CoreAuthorisationModIcingaweb2.php , and adding the editHtml permission when Icinga Web has the nagvis/edit permission:
(lines 57-65)