diff --git a/lam/lib/types/user.inc b/lam/lib/types/user.inc
index b574a075..62524dc3 100644
--- a/lam/lib/types/user.inc
+++ b/lam/lib/types/user.inc
@@ -262,11 +262,16 @@ class user extends baseType {
}
$statusTable .= '';
$tipContent = $statusTable;
- $tipContent .= '
';
- $tipContent .= _('Please click to lock/unlock this account.');
+ if (checkIfWriteAccessIsAllowed()) {
+ $tipContent .= '
';
+ $tipContent .= _('Please click to lock/unlock this account.');
+ }
$tooltip = "'" . $tipContent . "', TITLE, '" . _('Account status') . "'";
$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 . ' ';
}