From b50d48e082126ee47d29e35c016f7ea42335e850 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 30 Jul 2016 09:37:07 +0200 Subject: [PATCH] fixed issue with password change icon --- lam/lib/types/user.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lam/lib/types/user.inc b/lam/lib/types/user.inc index 0dc2af18..bd9541e4 100644 --- a/lam/lib/types/user.inc +++ b/lam/lib/types/user.inc @@ -723,7 +723,10 @@ class lamUserList extends lamList { * @return lamListTool[] tools */ 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'); return array($passwordTool); }