Code Duplication    Length = 3-3 lines in 2 locations

sources/main.functions.php 2 locations

@@ 690-692 (lines=3) @@
687
                        $roleId
688
                    );
689
                    foreach ($rows as $record) {
690
                        if (isset($record['folder_id']) && in_array($record['folder_id'], $listAllowedFolders) === false) {
691
                            array_push($listAllowedFolders, $record['folder_id']);
692
                        }
693
                        // Check if this group is allowed to modify any pw in allowed folders
694
                        if ($tmp['allow_pw_change'] == 1 && in_array($record['folder_id'], $listFoldersEditableByRole) === false) {
695
                            array_push($listFoldersEditableByRole, $record['folder_id']);
@@ 694-696 (lines=3) @@
691
                            array_push($listAllowedFolders, $record['folder_id']);
692
                        }
693
                        // Check if this group is allowed to modify any pw in allowed folders
694
                        if ($tmp['allow_pw_change'] == 1 && in_array($record['folder_id'], $listFoldersEditableByRole) === false) {
695
                            array_push($listFoldersEditableByRole, $record['folder_id']);
696
                        }
697
                    }
698
                    // Check for the users roles if some specific rights exist on items
699
                    $rows = DB::query(