Revision 670
Added by thorn almost 17 years ago
search.php | ||
---|---|---|
351 | 351 |
'default_max_excerpt' => $search_max_excerpt |
352 | 352 |
); |
353 | 353 |
// Only show this page if we are allowed to see it |
354 |
//if(is_access_denied($res['visibility'], $res['viewing_groups'], $res['viewing_users'])) { |
|
355 | 354 |
if($admin->page_is_visible($res) == false) { |
356 | 355 |
if($res['visibility'] == 'registered') { // don't show excerpt |
357 | 356 |
$search_func_vars['default_max_excerpt'] = 0; |
... | ... | |
404 | 403 |
'default_max_excerpt' => $max_excerpt_num |
405 | 404 |
); |
406 | 405 |
// Only show this page if we are allowed to see it |
407 |
//if(is_access_denied($page['visibility'], $page['viewing_groups'], $page['viewing_users'])) { |
|
408 | 406 |
if($admin->page_is_visible($page) == false) { |
409 | 407 |
if($page['visibility'] != 'registered') { |
410 | 408 |
continue; |
... | ... | |
562 | 560 |
continue; |
563 | 561 |
} |
564 | 562 |
if($visibility == 'private') { |
565 |
//if(is_access_denied($visibility, $viewing_groups, $viewing_users)) { |
|
566 | 563 |
if($admin->page_is_visible(array( |
567 | 564 |
'page_id'=>$page[$fields['page_id']], |
568 | 565 |
'visibility' =>$visibility, |
Also available in: Unified diff
Removed unused function is_access_denied() from search