Skip to content

Commit

Permalink
corrects "usepassword" rule
Browse files Browse the repository at this point in the history
  • Loading branch information
diml committed Nov 4, 2007
1 parent 16a34cc commit 28b2928
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/documents/lesson_document.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 28b2928

Please sign in to comment.