[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonsearchcat.pm

raeburn raeburn at source.lon-capa.org
Thu Jul 4 13:21:22 EDT 2024


raeburn		Thu Jul  4 17:21:22 2024 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonsearchcat.pm 
  Log:
  - For 2.11
    Backport 1.359
  
  
Index: loncom/interface/lonsearchcat.pm
diff -u loncom/interface/lonsearchcat.pm:1.331.4.16 loncom/interface/lonsearchcat.pm:1.331.4.17
--- loncom/interface/lonsearchcat.pm:1.331.4.16	Wed Aug 26 01:29:48 2020
+++ loncom/interface/lonsearchcat.pm	Thu Jul  4 17:21:22 2024
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Search Catalog
 #
-# $Id: lonsearchcat.pm,v 1.331.4.16 2020/08/26 01:29:48 raeburn Exp $
+# $Id: lonsearchcat.pm,v 1.331.4.17 2024/07/04 17:21:22 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2559,8 +2559,8 @@
 
                     if ($area eq 'portfolio') {
                         next if (defined($matches{$Fields{'url'}}));
-                        # Skip if inaccessible
-                        next if (!&Apache::lonnet::portfolio_access($Fields{'url'}));
+                        # Skip unless access control set to public or passphrase-protected
+                        next unless (($Fields{'scope'} eq 'public') || ($Fields{'scope'} eq 'guest'));
                         $matches{$Fields{'url'}} = 1; 
                     }
                     #




More information about the LON-CAPA-cvs mailing list