[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

raeburn raeburn at source.lon-capa.org
Mon Jun 7 08:15:04 EDT 2021


raeburn		Mon Jun  7 12:15:04 2021 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - Bug 6907. Content in a course can be set to be deep-link only.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1457 loncom/lonnet/perl/lonnet.pm:1.1458
--- loncom/lonnet/perl/lonnet.pm:1.1457	Sun Jun  6 23:18:59 2021
+++ loncom/lonnet/perl/lonnet.pm	Mon Jun  7 12:15:04 2021
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1457 2021/06/06 23:18:59 raeburn Exp $
+# $Id: lonnet.pm,v 1.1458 2021/06/07 12:15:04 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -8441,7 +8441,10 @@
                =~/\Q$priv\E\&([^\:]*)/) {
                my $value = $1;
                if ($priv eq 'bre') {
-                   if ($noblockcheck) {
+                   my $deeplinkblock = &deeplink_check($priv,$symb,$uri);
+                   if ($deeplinkblock) {
+                       $thisallowed = 'D';
+                   } elsif ($noblockcheck) {
                        $thisallowed.=$value;
                    } else {
                        my @blockers = &has_comm_blocking($priv,$symb,$uri,$ignorecache);




More information about the LON-CAPA-cvs mailing list