fixed issue with password change icon

This commit is contained in:
Roland Gruber 2016-07-30 09:37:07 +02:00
parent ce3d5930be
commit b50d48e082
1 changed files with 4 additions and 1 deletions

View File

@ -723,7 +723,10 @@ class lamUserList extends lamList {
* @return lamListTool[] tools * @return lamListTool[] tools
*/ */
protected function getAdditionalTools() { protected function getAdditionalTools() {
if (isLAMProVersion() && checkIfPasswordChangeIsAllowed() && checkIfWriteAccessIsAllowed('user')) { if (!isLAMProVersion()) {
return array();
}
if (checkIfWriteAccessIsAllowed('user') || (checkIfPasswordChangeIsAllowed() && !checkIfWriteAccessIsAllowed())) {
$passwordTool = new lamListTool(_('Change password'), 'key.png', 'changePassword.php'); $passwordTool = new lamListTool(_('Change password'), 'key.png', 'changePassword.php');
return array($passwordTool); return array($passwordTool);
} }