hide password button in readOnly mode

Cette révision appartient à :
Roland Gruber 2010-10-16 12:39:26 +00:00
Parent bf9c6ffb01
révision d93198bd18
2 fichiers modifiés avec 2 ajouts et 2 suppressions

Voir le fichier

@ -1002,7 +1002,7 @@ class posixAccount extends baseModule implements passwordService {
$return->addElement(new htmlTableExtendedSelect('loginShell', $shelllist, array($this->attributes['loginShell'][0]), _('Login shell'), 'loginShell'), true);
}
// password buttons
if (isset($this->attributes['userPassword'][0])) {
if (checkIfWriteAccessIsAllowed() && isset($this->attributes['userPassword'][0])) {
$return->addElement(new htmlOutputText(_('Password')));
$pwdContainer = new htmlTable();
if (pwd_is_enabled($this->attributes['userPassword'][0])) {

Voir le fichier

@ -196,7 +196,7 @@ class posixGroup extends baseModule implements passwordService {
$return->addElement(new htmlAccountPageButton(get_class($this), 'user', 'open', _('Edit members')));
$return->addElement(new htmlHelpLink('members'), true);
// password buttons
if (isset($this->attributes['userPassword'][0])) {
if (checkIfWriteAccessIsAllowed() && isset($this->attributes['userPassword'][0])) {
$return->addElement(new htmlOutputText(_('Password')));
$pwdContainer = new htmlTable();
if (pwd_is_enabled($this->attributes['userPassword'][0])) {