commit
9ea60e5a1d
@ -288,7 +288,7 @@ if ($projectid > 0) {
|
|||||||
$morehtmlref .= '</div>';
|
$morehtmlref .= '</div>';
|
||||||
|
|
||||||
// Define a complementary filter for search of next/prev ref.
|
// Define a complementary filter for search of next/prev ref.
|
||||||
if (!$user->rights->project->all->lire) {
|
if (empty($user->rights->project->all->lire)) {
|
||||||
$objectsListId = $project->getProjectsAuthorizedForUser($user, 0, 0);
|
$objectsListId = $project->getProjectsAuthorizedForUser($user, 0, 0);
|
||||||
$project->next_prev_filter = " rowid IN (".$db->sanitize(count($objectsListId) ? join(',', array_keys($objectsListId)) : '0').")";
|
$project->next_prev_filter = " rowid IN (".$db->sanitize(count($objectsListId) ? join(',', array_keys($objectsListId)) : '0').")";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user