allow (un)locking only if write access is allowed
This commit is contained in:
parent
2affd78df8
commit
8ac5b3154c
|
@ -262,11 +262,16 @@ class user extends baseType {
|
||||||
}
|
}
|
||||||
$statusTable .= '</table>';
|
$statusTable .= '</table>';
|
||||||
$tipContent = $statusTable;
|
$tipContent = $statusTable;
|
||||||
$tipContent .= '<br><img alt="hint" src="../../graphics/light.png"> ';
|
if (checkIfWriteAccessIsAllowed()) {
|
||||||
$tipContent .= _('Please click to lock/unlock this account.');
|
$tipContent .= '<br><img alt="hint" src="../../graphics/light.png"> ';
|
||||||
|
$tipContent .= _('Please click to lock/unlock this account.');
|
||||||
|
}
|
||||||
$tooltip = "'" . $tipContent . "', TITLE, '" . _('Account status') . "'";
|
$tooltip = "'" . $tipContent . "', TITLE, '" . _('Account status') . "'";
|
||||||
$dialogDiv = $this->buildAccountStatusDialogDiv($unixAvailable, $unixLocked, $sambaAvailable, $sambaLocked, $ppolicyAvailable, $ppolicyLocked);
|
$dialogDiv = $this->buildAccountStatusDialogDiv($unixAvailable, $unixLocked, $sambaAvailable, $sambaLocked, $ppolicyAvailable, $ppolicyLocked);
|
||||||
$onClick = 'onclick="showConfirmationDialog(\'' . _('Change account status') . '\', \'' . _('Ok') . '\', \'' . _('Cancel') . '\', \'lam_accountStatusDialog\', \'inputForm\', \'lam_accountStatusResult\');"';
|
$onClick = '';
|
||||||
|
if (checkIfWriteAccessIsAllowed()) {
|
||||||
|
$onClick = 'onclick="showConfirmationDialog(\'' . _('Change account status') . '\', \'' . _('Ok') . '\', \'' . _('Cancel') . '\', \'lam_accountStatusDialog\', \'inputForm\', \'lam_accountStatusResult\');"';
|
||||||
|
}
|
||||||
return $dialogDiv . '<a href="#"><img id="lam_accountStatus" alt="status" ' . $onClick . ' onmouseout="UnTip()" onmouseover="Tip(' . $tooltip . ')" height=16 width=16 src="../../graphics/' . $icon . '"></a> ';
|
return $dialogDiv . '<a href="#"><img id="lam_accountStatus" alt="status" ' . $onClick . ' onmouseout="UnTip()" onmouseover="Tip(' . $tooltip . ')" height=16 width=16 src="../../graphics/' . $icon . '"></a> ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue