From 28b29281b585acb3a23bdc488e0978bdc8e11b0a Mon Sep 17 00:00:00 2001 From: diml Date: Sun, 4 Nov 2007 22:37:15 +0000 Subject: [PATCH] corrects "usepassword" rule --- search/documents/lesson_document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/documents/lesson_document.php b/search/documents/lesson_document.php index b2e176a07f..8354fe56ef 100644 --- a/search/documents/lesson_document.php +++ b/search/documents/lesson_document.php @@ -183,7 +183,7 @@ function lesson_check_text_access($path, $itemtype, $this_id, $user, $group_id, return false; } - if ($lesson->usepassword){ + if ($lesson->usepassword && !lessonsuperuser){ if (!empty($CFG->search_access_debug)) echo "search reject : password required, cannot output in searches "; return false; } -- 2.39.5