fixed issue with password change icon
This commit is contained in:
		
							parent
							
								
									ce3d5930be
								
							
						
					
					
						commit
						b50d48e082
					
				| 
						 | 
					@ -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);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue