Skip to content
Snippets Groups Projects
Commit 1c6c9dc9 authored by yllen's avatar yllen Committed by Johan Cwiklinski
Browse files

fix rights in computer tabs - see #3218

parent 92f98358
No related branches found
Tags 9.1.7
No related merge requests found
......@@ -188,7 +188,7 @@ class ComputerAntivirus extends CommonDBChild {
function showForm($ID, $options=array()) {
global $CFG_GLPI;
if (!Session::haveRight("computer", UPDATE)) {
if (!Session::haveRight("computer", READ)) {
return false;
}
......@@ -262,6 +262,7 @@ class ComputerAntivirus extends CommonDBChild {
echo "<td colspan='2'></td>";
echo "</tr>";
$options['canedit'] = Session::haveRight("computer", UPDATE);
$this->showFormButtons($options);
return true;
......
......@@ -102,7 +102,7 @@ class ComputerDisk extends CommonDBChild {
$ong = array();
$this->addDefaultFormTab($ong);
$this->addStandardTab('Log', $ong, $options);
return $ong;
}
......@@ -144,7 +144,7 @@ class ComputerDisk extends CommonDBChild {
function showForm($ID, $options=array()) {
global $CFG_GLPI;
if (!Session::haveRight("computer", UPDATE)) {
if (!Session::haveRight("computer", READ)) {
return false;
}
......@@ -209,6 +209,7 @@ class ComputerDisk extends CommonDBChild {
Html::autocompletionTextField($this, "freesize");
echo "&nbsp;".__('Mio')."</td></tr>";
$options['canedit'] = Session::haveRight("computer", UPDATE);
$this->showFormButtons($options);
return true;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment